Actions
Task #103628
closedAvoid deprecation notice in SystemInformationToolbarItem->addSystemInformation()
Start date:
2024-04-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:
Description
TYPO3 Deprecation Notice: Using a string of the non-native enumeration TYPO3\CMS\Backend\Toolbar\Enumeration\InformationStatus for $status in SystemInformationToolbarItem->addSystemInformation() has been deprecated and will stop working in TYPO3 v14.0. Use the native TYPO3\CMS\Backend\Toolbar\InformationStatus instead.
This is caused by:
https://github.com/TYPO3/typo3/blob/main/typo3/sysext/scheduler/Classes/SystemInformation/ToolbarItemProvider.php#L84
So if the scheduler was NOT started manually (but f.e. by a cronjob) the value passed for $severity
is an empty string.
We can mitigate the issue by setting $severity
by default to InformationStatus::NOTICE
which is the default for SystemInformationToolbarItem->addSystemInformation()
This only effects TYPO3 v13/main.
Actions