Skip to content

Commit

Permalink
Enable intl.use_exceptions in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jul 6, 2022
1 parent c954aa1 commit ea3be88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Symfony/Component/ErrorHandler/Debug.php
Expand Up @@ -33,6 +33,7 @@ public static function enable(): ErrorHandler
ini_set('assert.active', 1);
ini_set('assert.warning', 0);
ini_set('assert.exception', 1);
ini_set('intl.use_exceptions', 1);

DebugClassLoader::enable();

Expand Down
Expand Up @@ -35,6 +35,7 @@ public static function register(bool $debug): void
ini_set('assert.warning', 0);
ini_set('assert.exception', 1);
}
ini_set('intl.use_exceptions', 1);

set_error_handler(new self());
}
Expand Down

0 comments on commit ea3be88

Please sign in to comment.