mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-26 08:47:19 +00:00
Use array_values to avoid named parameters error
This commit is contained in:
parent
5bb14f0c60
commit
d9247a0832
1 changed files with 2 additions and 2 deletions
|
@ -226,10 +226,10 @@ class Folder {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dirs) {
|
if ($dirs) {
|
||||||
$dirs = call_user_func_array('array_merge', $dirs);
|
$dirs = call_user_func_array('array_merge', array_values($dirs));
|
||||||
}
|
}
|
||||||
if ($files) {
|
if ($files) {
|
||||||
$files = call_user_func_array('array_merge', $files);
|
$files = call_user_func_array('array_merge', array_values($files));
|
||||||
}
|
}
|
||||||
return array($dirs, $files);
|
return array($dirs, $files);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue