diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst index ca22333954594ad1feec94c0ec8c05b399126c6d..84a1663e882dea2eac60b9c7567919a4c427676d 100644 --- a/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst +++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst @@ -46,6 +46,7 @@ The following PHP static class methods that have been previously deprecated for - :php:`\TYPO3\CMS\Core\Utility\GeneralUtility::presetApplicationContext` - :php:`\TYPO3\CMS\Core\Utility\GeneralUtility::resetApplicationContext` - :php:`\TYPO3\CMS\Core\Utility\GeneralUtility::verifyFilenameAgainstDenyPattern` +- :php:`\TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::hex2bin` The following PHP methods have been additionally deprecated and are a no-op now: diff --git a/typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php b/typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php index 5bc65ee573eaf0e25492ba3890e6a44031a920a7..4f1ce087b53c5c1815e0c4ec8ef880f69324034f 100644 --- a/typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php +++ b/typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php @@ -160,26 +160,4 @@ class TypeHandlingUtility { return is_iterable($value); } - - /** - * Converts a hex encoded string into binary data - * - * @param string $hexadecimalData A hex encoded string of data - * @return string A binary string decoded from the input - * @deprecated - */ - public static function hex2bin(string $hexadecimalData): string - { - trigger_error( - 'Method ' . __METHOD__ . ' will be removed in TYPO3 11.0, use native hex2bin instead.', - E_USER_DEPRECATED - ); - - $binaryData = ''; - $length = strlen($hexadecimalData); - for ($i = 0; $i < $length; $i += 2) { - $binaryData .= pack('C', hexdec(substr($hexadecimalData, $i, 2))); - } - return $binaryData; - } } diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php index 318b2fceaf269097aa85df1e58dda1841a90995f..74006a745d9b99528788a3587ed214af3542c444 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php @@ -853,6 +853,7 @@ return [ 'maximumNumberOfArguments' => 1, 'restFiles' => [ 'Deprecation-87613-DeprecateTYPO3CMSExtbaseUtilityTypeHandlingUtilityhex2bin.rst', + 'Breaking-91473-DeprecatedFunctionalityRemoved.rst' ], ], 'TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode' => [