diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 802cf1b52..94f6ac971 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -1193,7 +1193,7 @@ HEADER; } foreach ((array) $loader as $prop => $value) { - if ($value && 0 === strpos($prop, $prefix)) { + if (is_array($value) && $value && 0 === strpos($prop, $prefix)) { $maps[substr($prop, $prefixLen)] = $value; } }