Remove E_DEPRECATED errors on production instances.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-12 09:19:45 -06:00
parent fe3dd94e75
commit 0a44627cc1
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
1 changed files with 5 additions and 1 deletions

View File

@ -225,7 +225,11 @@ class AppFactory
protected static function applyPhpSettings(Environment $environment): void
{
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT);
error_reporting(
$environment->isProduction()
? E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED
: E_ALL & ~E_NOTICE
);
$displayStartupErrors = (!$environment->isProduction() || $environment->isCli())
? '1'