Skip to content

Commit

Permalink
chore: avoid deprecation in ToolbarItemProvider for TYPO3 v13
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Sep 3, 2024
1 parent f826fa4 commit 396787d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/EventListener/ToolbarItemProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

use JobRouter\AddOn\Typo3Data\Extension;
use TYPO3\CMS\Backend\Backend\Event\SystemInformationToolbarCollectorEvent;
use TYPO3\CMS\Backend\Toolbar\InformationStatus;
use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus as DeprecatedInformationStatus;
use TYPO3\CMS\Backend\Toolbar\InformationStatus;
use TYPO3\CMS\Core\Information\Typo3Version;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Registry;
Expand Down Expand Up @@ -93,7 +93,7 @@ private function isOverdue(): bool
return ($this->lastRunInformation['start'] ?? 0) < \time() - 86400;
}

private function getSeverity(): string|\TYPO3\CMS\Backend\Toolbar\InformationStatus
private function getSeverity(): string|InformationStatus
{
// @todo Remove switch when compatibility with TYPO3 v12 is dropped
$isVersion12 = (new Typo3Version())->getMajorVersion() === 12;
Expand Down

0 comments on commit 396787d

Please sign in to comment.