Skip to content

Commit 781d893

Browse files
[HttpKernel] Fix annotation cache warmer with failing or missing classes
1 parent 40934cb commit 781d893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/AddClassesToCachePass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function getClassesInComposerClassMaps()
101101
}
102102

103103
if (is_array($function) && $function[0] instanceof ClassLoader) {
104-
$classes += $function[0]->getClassMap();
104+
$classes += array_filter($function[0]->getClassMap());
105105
}
106106
}
107107

0 commit comments

Comments
 (0)