8000 Use CPP where possible · symfony/error-handler@04d41f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 04d41f3

Browse files
Use CPP where possible
1 parent 26b4deb commit 04d41f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ErrorHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ class ErrorHandler
9292
private int $screamedErrors = 0x55; // E_ERROR + E_CORE_ERROR + E_COMPILE_ERROR + E_PARSE
9393
private int $loggedErrors = 0;
9494
private \Closure $configureException;
95-
private bool $debug;
9695

9796
private bool $isRecursive = false;
9897
private bool $isRoot = false;
@@ -179,8 +178,10 @@ public static function call(callable $function, mixed ...$arguments): mixed
179178
}
180179
}
181180

182-
public function __construct(?BufferingLogger $bootstrappingLogger = null, bool $debug = false)
183-
{
181+
public function __construct(
182+
?BufferingLogger $bootstrappingLogger = null,
183+
private bool $debug = false,
184+
) {
184185
if ($bootstrappingLogger) {
185186
$this->bootstrappingLogger = $bootstrappingLogger;
186187
$this->setDefaultLogger($bootstrappingLogger);
@@ -192,7 +193,6 @@ public function __construct(?BufferingLogger $bootstrappingLogger = null, bool $
192193
$e->line = $line ?? $e->line;
193194
}, null, new class() extends \Exception {
194195
});
195-
$this->debug = $debug;
196196
}
197197

198198
/**

0 commit comments

Comments
 (0)
0