diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 1a72be3d86f1da41bd58142a4bdb27a055603765..edb848f9413bd5389a2d0ede003d094a8876d4ed 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -3213,7 +3213,7 @@ class GeneralUtility * @throws \RuntimeException * @return object|string[]|false The service object or an array with error infos, or false if no service was found. */ - public static function makeInstanceService($serviceType, $serviceSubType = '', array $excludeServiceKeys = []) + public static function makeInstanceService(string $serviceType, string $serviceSubType = '', array $excludeServiceKeys = []): array|object|false { $error = false; $requestInfo = [ diff --git a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97210-TypesAddedToMethodSignaturesOrClassProperties.rst b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97210-TypesAddedToMethodSignaturesOrClassProperties.rst index 4be2148b68fbef456d2b27e19e532b025021e9ef..bea909b93547c4affbf6cdbf680eb32772d22b45 100644 --- a/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97210-TypesAddedToMethodSignaturesOrClassProperties.rst +++ b/typo3/sysext/core/Documentation/Changelog/12.0/Breaking-97210-TypesAddedToMethodSignaturesOrClassProperties.rst @@ -9,9 +9,9 @@ See :issue:`97210` Description =========== -The following PHP classes have had parameter and return types added to their method -signatures. The types are consistent with existing docblock-documented type -expectations and existing behavior. +The following PHP classes have had parameter and return types added to some or +all of their method signatures. The types are consistent with existing +docblock-documented type expectations and existing behavior. - :php:`\TYPO3\CMS\Core\Utility\ArrayUtility` - :php:`\TYPO3\CMS\Core\Utility\ClassNamingUtility` @@ -20,6 +20,7 @@ expectations and existing behavior. - :php:`\TYPO3\CMS\Core\Utility\DebugUtility` - :php:`\TYPO3\CMS\Core\Utility\DiffUtility` - :php:`\TYPO3\CMS\Core\Utility\ExtensionManagementUtility` +- :php:`\TYPO3\CMS\Core\Utility\GeneralUtility` - :php:`\TYPO3\CMS\Core\Utility\MailUtility` - :php:`\TYPO3\CMS\Core\Utility\MathUtility` - :php:`\TYPO3\CMS\Core\Utility\PathUtility`