We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3771c commit d7cae91Copy full SHA for d7cae91
src/AutomaticServerPush.php
@@ -37,7 +37,7 @@ public function bootstrap($app)
37
// we have to parse ready tags
38
// the better performance solution will be to override View
39
// but that is a task for next version
40
- if ($view->cssFiles !== null && count($view->cssFiles) > 0) {
+ if ($view->cssFiles !== null && is_array($view->cssFiles) && count($view->cssFiles) > 0) {
41
$cssLinkTags = implode(' ', $view->cssFiles);
42
preg_match_all('/href="([^"]*)"/', $cssLinkTags, $matches);
43
if (array_key_exists(1, $matches)) {
0 commit comments