Skip to content

Commit

Permalink
Do not use deprecated Debug class for error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
fracz committed Feb 2, 2022
1 parent 0db4581 commit ae75542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ?: 'prod'));

$kernel = new AppKernel(APPLICATION_ENV, APPLICATION_ENV == 'dev');
$kernel = new AppKernel(APPLICATION_ENV, APPLICATION_ENV === 'dev');
if (APPLICATION_ENV === 'dev') {
Symfony\Component\Debug\Debug::enable();
Symfony\Component\ErrorHandler\Debug::enable();
umask(0000);
}

Expand Down

0 comments on commit ae75542

Please sign in to comment.