From fc961dce707aeb52ba76d95253d7d70689cfbd84 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Thu, 3 Sep 2020 23:26:09 +0200 Subject: [PATCH] Call call_user_func_array() with a numeric arguments array. --- src/Composer/Autoload/ClassLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Autoload/ClassLoader.php b/src/Composer/Autoload/ClassLoader.php index fce8549f0..03b9bb9c4 100644 --- a/src/Composer/Autoload/ClassLoader.php +++ b/src/Composer/Autoload/ClassLoader.php @@ -60,7 +60,7 @@ class ClassLoader public function getPrefixes() { if (!empty($this->prefixesPsr0)) { - return call_user_func_array('array_merge', $this->prefixesPsr0); + return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); } return array();