diff --git a/typo3/sysext/core/Classes/SysLog/Error.php b/typo3/sysext/core/Classes/SysLog/Error.php index 40f09b1635325a557e4eefc3f39dbcb7994fdb1e..c3fe01045323ccbcb5fc4899dcacbd4267353b93 100644 --- a/typo3/sysext/core/Classes/SysLog/Error.php +++ b/typo3/sysext/core/Classes/SysLog/Error.php @@ -27,12 +27,4 @@ class Error public const SYSTEM_ERROR = 2; public const SECURITY_NOTICE = 3; public const WARNING = 4; - - /* - * 100 is a code, which has been introduced by Kasper in his "Todays special" commit: - * @see https://github.com/typo3/typo3/commit/7496d6d033 - * - * @todo The constant should either be renamed or replaced completely in the future - */ - public const TODAYS_SPECIAL = 100; } diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-98195-RemoveTODAYS_SPECIALErrorConstant.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-98195-RemoveTODAYS_SPECIALErrorConstant.rst new file mode 100644 index 0000000000000000000000000000000000000000..2b6ea23d852e05edf959c8bb7e0b1b1883ea37f5 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-98195-RemoveTODAYS_SPECIALErrorConstant.rst @@ -0,0 +1,37 @@ +.. include:: /Includes.rst.txt + +.. _breaking-98195-1661274247: + +======================================================= +Breaking: #98195 - Remove TODAYS_SPECIAL error constant +======================================================= + +See :issue:`98195` + +Description +=========== + +The constant :php:`TODAYS_SPECIAL` in :php:`\TYPO3\CMS\Core\SysLog\Error` has never been +used in TYPO3 core and is therefore removed without replacement. + + +Impact +====== + +3rd party extensions using the extension will fail with a PHP error. + + +Affected installations +====================== + +3rd party extensions who use the :php:`TODAYS_SPECIAL` constant. + + +Migration +========= + +3rd party extensions using the :php:`TODAYS_SPECIAL` constant should replace +all usages with the integer value `100` or use a custom class with a user +defined constant. + +.. index:: Backend, PHP-API, NotScanned, ext:core