From d9247a0832070486cb15472a53507b83e0fb8179 Mon Sep 17 00:00:00 2001 From: Albert Peschar Date: Mon, 31 Jan 2022 17:02:07 +0000 Subject: [PATCH] Use array_values to avoid named parameters error --- lib/Cake/Utility/Folder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Utility/Folder.php b/lib/Cake/Utility/Folder.php index cf7e83e9a..34325513e 100644 --- a/lib/Cake/Utility/Folder.php +++ b/lib/Cake/Utility/Folder.php @@ -226,10 +226,10 @@ class Folder { } if ($dirs) { - $dirs = call_user_func_array('array_merge', $dirs); + $dirs = call_user_func_array('array_merge', array_values($dirs)); } if ($files) { - $files = call_user_func_array('array_merge', $files); + $files = call_user_func_array('array_merge', array_values($files)); } return array($dirs, $files); }