1
0
Fork 0

Improve compatibility with modern ClassLoader instances

Fixes #11234
pull/11316/head
Jordi Boggiano 2022-12-22 12:48:33 +01:00 committed by GitHub
parent b067e96021
commit a30299b103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1193,7 +1193,7 @@ HEADER;
} }
foreach ((array) $loader as $prop => $value) { 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; $maps[substr($prop, $prefixLen)] = $value;
} }
} }