1
0
mirror of https://github.com/flarum/core.git synced 2025-08-03 23:17:43 +02:00

chore: ignore deprecation errors in prod (#4072)

This commit is contained in:
Sami Mazouz
2024-10-21 19:10:57 +01:00
committed by GitHub
parent a0311dfb2b
commit 30a6a9b697

View File

@@ -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));
}