Skip to content

Commit 59abfc9

Browse files
bug #20725 [HttpKernel] Fix annotation cache warmer with failing or missing classes (nicolas-grekas)
This PR was merged into the 3.2 branch. Discussion ---------- [HttpKernel] Fix annotation cache warmer with failing or missing classes | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20720 | License | MIT | Doc PR | - Commits ------- dcf9fbb [HttpKernel] Fix annotation cache warmer with failing or missing classes
2 parents 78e1ecc + 781d893 commit 59abfc9

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)