[BUGFIX] Fix wrong usage of $callback in ArrayUtility::filterRecursive 68/56368/7
authorStephan Jorek <stephan.jorek@gmail.com>
Mon, 19 Mar 2018 16:32:54 +0000 (17:32 +0100)
committerFrank Naegler <frank.naegler@typo3.org>
Thu, 29 Mar 2018 15:32:59 +0000 (17:32 +0200)
commitdd16ae333f2267c60f29a5e76854fd12f4c14620
tree019223ea2d5c065fb50f73a11b16ad7be989f36d
parentfa405636804730c6a118589c84a8f771adafa652
[BUGFIX] Fix wrong usage of $callback in ArrayUtility::filterRecursive

Change closure call of callable-typed $callback in
\TYPO3\CMS\Core\Utility\ArrayUtility::filterRecursive to call_user_func().
Add test to ArrayUtilityTest to verify the correct behaviour.

Resolves: #84485
Releases: master
Change-Id: If3e2362fc7393634032f93a4f6e89e27bb5b7fc9
Reviewed-on: https://review.typo3.org/56368
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Steffen Frese <steffenf14@gmail.com>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Utility/ArrayUtility.php
typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php
typo3/sysext/core/Tests/Unit/Utility/Fixtures/ArrayUtilityFilterRecursiveCallbackFixture.php [new file with mode: 0644]