diff --git a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php index 5f499de..4f7f014 100644 --- a/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php +++ b/Classes/EventListener/SystemInformationToolbarCollectorEventListener.php @@ -6,6 +6,7 @@ use Networkteam\SentryClient\Service\SentryService; use TYPO3\CMS\Backend\Backend\Event\SystemInformationToolbarCollectorEvent; use TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus; +use TYPO3\CMS\Backend\Toolbar\InformationStatus as InformationStatusEnum; use TYPO3\CMS\Core\Localization\LanguageService; class SystemInformationToolbarCollectorEventListener @@ -21,8 +22,9 @@ public function __invoke(SystemInformationToolbarCollectorEvent $event): void 'Sentry', $label, 'tx-sentryclient-sentry-glyph-light', - $isActive ? InformationStatus::STATUS_OK : InformationStatus::STATUS_ERROR - ); + $isActive + ? (enum_exists(InformationStatusEnum::class) ? InformationStatusEnum::OK : InformationStatus::STATUS_OK) + : (enum_exists(InformationStatusEnum::class) ? InformationStatusEnum::ERROR : InformationStatus::STATUS_ERROR) ); if ($isActive) { $release = ConfigurationService::getRelease(); @@ -40,4 +42,4 @@ protected function getLanguageService(): LanguageService { return $GLOBALS['LANG']; } -} \ No newline at end of file +} diff --git a/composer.json b/composer.json index 97410bd..48178d9 100644 --- a/composer.json +++ b/composer.json @@ -23,9 +23,9 @@ ], "require": { "php": "^8.0", - "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0", - "typo3/cms-core": "^11.0 || ^12.0 || ^13.0", - "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0", + "typo3/cms-backend": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-core": "^11.0 || ^12.0 || ^13.0 || ^14.0", + "typo3/cms-frontend": "^11.0 || ^12.0 || ^13.0 || ^14.0", "sentry/sentry": "^4.6" }, "extra": {