Skip to content

Commit

Permalink
chore: set display_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Oct 16, 2024
1 parent cc23330 commit 296b58e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/core/src/Foundation/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public static function fromPaths(array $paths): SiteInterface
error_reporting($config->inDebugMode() ? E_ALL : E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
}

ini_set('display_errors', $config->inDebugMode() ? 1 : 0);

return (
new InstalledSite($paths, $config)
)->extendWith(static::loadExtenders($paths->base));
Expand Down

0 comments on commit 296b58e

Please sign in to comment.