diff --git a/Internal/SymfonyErrorHandler.php b/Internal/SymfonyErrorHandler.php index bf6e1cf..40c125a 100644 --- a/Internal/SymfonyErrorHandler.php +++ b/Internal/SymfonyErrorHandler.php @@ -29,7 +29,7 @@ public static function register(bool $debug): void if (class_exists(ErrorHandler::class)) { DebugClassLoader::enable(); restore_error_handler(); - ErrorHandler::register(new ErrorHandler(new BufferingLogger(), true)); + ErrorHandler::register(new ErrorHandler(new BufferingLogger(), $debug)); } } }