Skip to content
Snippets Groups Projects
Commit 29ec4f38 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[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: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarRichard Haeser <richard@richardhaeser.com>
Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarRichard Haeser <richard@richardhaeser.com>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent cf162bf0
Branches
Tags
No related merge requests found
Showing
with 217 additions and 15 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment