mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 07:29:51 +00:00
Merge branch '1.3' into 1.3-misc
This commit is contained in:
commit
6dbb8f3994
1 changed files with 2 additions and 2 deletions
|
@ -1163,10 +1163,10 @@ class Set extends Object {
|
||||||
$extracted = Set::extract($path, $data);
|
$extracted = Set::extract($path, $data);
|
||||||
|
|
||||||
if ($options['type'] === 'map') {
|
if ($options['type'] === 'map') {
|
||||||
$result = array_map($callback, &$extracted);
|
$result = array_map($callback, $extracted);
|
||||||
|
|
||||||
} elseif ($options['type'] === 'reduce') {
|
} elseif ($options['type'] === 'reduce') {
|
||||||
$result = array_reduce(&$extracted, $callback);
|
$result = array_reduce($extracted, $callback);
|
||||||
|
|
||||||
} elseif ($options['type'] === 'pass') {
|
} elseif ($options['type'] === 'pass') {
|
||||||
$result = call_user_func_array($callback, array($extracted));
|
$result = call_user_func_array($callback, array($extracted));
|
||||||
|
|
Loading…
Add table
Reference in a new issue