diff --git a/framework/core/src/Foundation/Site.php b/framework/core/src/Foundation/Site.php index 323fe7a208..a4c398c80c 100644 --- a/framework/core/src/Foundation/Site.php +++ b/framework/core/src/Foundation/Site.php @@ -31,7 +31,9 @@ public static function fromPaths(array $paths): SiteInterface $config = static::loadConfig($paths->base); - error_reporting($config->inDebugMode() ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED); + if (function_exists('error_reporting')) { + error_reporting($config->inDebugMode() ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED); + } return ( new InstalledSite($paths, $config)