diff --git a/src/Foundation/Site.php b/src/Foundation/Site.php index 6f17f3f06..ba44d459c 100644 --- a/src/Foundation/Site.php +++ b/src/Foundation/Site.php @@ -61,6 +61,12 @@ class Site return []; } - return array_flatten(require $extenderFile); + $extenders = require $extenderFile; + + if (! is_array($extenders)) { + return []; + } + + return array_flatten($extenders); } }