We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6985216 commit 6d71aeaCopy full SHA for 6d71aea
src/Prophecy/ErrorHandling/BootstrapErrorHandler.php
@@ -9,6 +9,10 @@
9
use Maduser\Argon\Prophecy\Contracts\ErrorHandling\BootstrapErrorHandlerInterface;
10
use Psr\Log\LoggerInterface;
11
use Throwable;
12
+use const E_ERROR;
13
+use const ENT_QUOTES;
14
+use const ENT_SUBSTITUTE;
15
+use const PHP_SAPI;
16
17
final class BootstrapErrorHandler implements BootstrapErrorHandlerInterface
18
{
@@ -47,7 +51,7 @@ public function __construct(
47
51
private function defaultOutputCallback(): Closure
48
52
49
53
return function (string $message): void {
50
- $stream = $this->stream ?? STDERR;
54
+ $stream = $this->stream ?? \STDERR;
55
56
if ($this->sapi === 'cli') {
57
fwrite($stream, $message);
0 commit comments