diff --git a/src/AutomaticServerPush.php b/src/AutomaticServerPush.php index 7b45397..1f1ce90 100644 --- a/src/AutomaticServerPush.php +++ b/src/AutomaticServerPush.php @@ -37,7 +37,7 @@ public function bootstrap($app) // we have to parse ready tags // the better performance solution will be to override View // but that is a task for next version - if ($view->cssFiles !== null && count($view->cssFiles) > 0) { + if ($view->cssFiles !== null && is_array($view->cssFiles) && count($view->cssFiles) > 0) { $cssLinkTags = implode(' ', $view->cssFiles); preg_match_all('/href="([^"]*)"/', $cssLinkTags, $matches); if (array_key_exists(1, $matches)) {