Skip to content

Commit

Permalink
chore: check if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 16, 2024
1 parent ef557cb commit cc23330
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/core/src/Foundation/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc23330

Please sign in to comment.