[TASK] Switch behavior of ArrayUtility::arrayDiffAssocRecursive()
Despite its name, the method `ArrayUtility::arrayDiffAssocRecursive()` mimics the behavior of `array_diff_key()` and not of `array_diff_assoc()`. The method has been adjusted to act like `array_diff_assoc()`. As this is considered being a breaking change, the behavior must be enabled explicitly by passing a 3rd parameter `$useArrayDiffAssocBehavior` being true. If the argument is either omitted or false, the old behavior is kept but a deprecation warning will be thrown. Resolves: #94137 Releases: master, 10.4 Change-Id: I3cfa9581596ca4114bce4daca461187e9b87fe99 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69143 Tested-by:Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Richard Haeser <richard@richardhaeser.com> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Richard Haeser <richard@richardhaeser.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 1 addition, 1 deletiontypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/Routing/Enhancer/PluginEnhancer.php 1 addition, 1 deletion...3/sysext/core/Classes/Routing/Enhancer/PluginEnhancer.php
- typo3/sysext/core/Classes/Routing/Enhancer/SimpleEnhancer.php 1 addition, 1 deletion...3/sysext/core/Classes/Routing/Enhancer/SimpleEnhancer.php
- typo3/sysext/core/Classes/Routing/PageArguments.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Routing/PageArguments.php
- typo3/sysext/core/Classes/Utility/ArrayUtility.php 41 additions, 2 deletionstypo3/sysext/core/Classes/Utility/ArrayUtility.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-94137-SwitchBehaviorOfArrayUtilityarrayDiffAssocRecursive.rst 41 additions, 0 deletions...7-SwitchBehaviorOfArrayUtilityarrayDiffAssocRecursive.rst
- typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php 121 additions, 6 deletionstypo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php
- typo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php 1 addition, 1 deletiontypo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 1 addition, 1 deletion.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallStaticMatcher.php 7 additions, 0 deletions...guration/ExtensionScanner/Php/MethodCallStaticMatcher.php
- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php 1 addition, 1 deletiontypo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php
Please register or sign in to comment