mirror of
https://github.com/flarum/framework.git
synced 2025-02-12 20:40:45 +08:00
chore: ignore deprecation errors in prod (#4072)
This commit is contained in:
parent
a0311dfb2b
commit
30a6a9b697
|
@ -31,8 +31,16 @@ class Site
|
|||
);
|
||||
}
|
||||
|
||||
$config = static::loadConfig($paths->base);
|
||||
|
||||
ini_set('display_errors', 0);
|
||||
|
||||
if (! $config->inDebugMode() && function_exists('error_reporting')) {
|
||||
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
|
||||
}
|
||||
|
||||
return (
|
||||
new InstalledSite($paths, static::loadConfig($paths->base))
|
||||
new InstalledSite($paths, $config)
|
||||
)->extendWith(static::loadExtenders($paths->base));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user