From d4d97e2b0f6c0f2e6297d94261493a57058fe193 Mon Sep 17 00:00:00 2001 From: Alexander Schnitzler <git@alexanderschnitzler.de> Date: Fri, 1 May 2020 11:56:56 +0200 Subject: [PATCH] [!!!][TASK] Remove deprecated method ObjectAccess::buildSetterMethodName Releases: master Resolves: #91535 Related: #91473 Change-Id: I98db08e8fef297b47bd11fed13d3fe91af3ba1cd Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64382 Tested-by: Benni Mack <benni@typo3.org> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Benjamin Franzke <bfr@qbus.de> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Benjamin Franzke <bfr@qbus.de> --- ...king-91473-DeprecatedFunctionalityRemoved.rst | 1 + .../extbase/Classes/Reflection/ObjectAccess.php | 16 ---------------- .../Php/MethodCallStaticMatcher.php | 1 + 3 files changed, 2 insertions(+), 16 deletions(-) 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 62e14d517279..c5faa55111eb 100644 --- a/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst +++ b/typo3/sysext/core/Documentation/Changelog/master/Breaking-91473-DeprecatedFunctionalityRemoved.rst @@ -55,6 +55,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\Reflection\ObjectAccess::buildSetterMethodName` - :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/Reflection/ObjectAccess.php b/typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php index 6c55cd14e9ea..3750af176462 100644 --- a/typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php +++ b/typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php @@ -363,22 +363,6 @@ class ObjectAccess return $properties; } - /** - * Build the setter method name for a given property by capitalizing the - * first letter of the property, and prepending it with "set". - * - * @param string $propertyName Name of the property - * - * @return string Name of the setter method name - * @deprecated - */ - public static function buildSetterMethodName($propertyName): string - { - trigger_error(__METHOD__ . ' will be removed in TYPO3 11.0', E_USER_DEPRECATED); - - return 'set' . ucfirst($propertyName); - } - /** * @return PropertyAccessor */ diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php index 74006a745d9b..229aaecf40ce 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php @@ -846,6 +846,7 @@ return [ 'maximumNumberOfArguments' => 1, 'restFiles' => [ 'Deprecation-87332-AvoidRuntimeReflectionCallsInObjectAccess.rst', + 'Breaking-91473-DeprecatedFunctionalityRemoved.rst' ], ], 'TYPO3\CMS\Extbase\Utility\TypeHandlingUtility::hex2bin' => [ -- GitLab