Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 60d1b67

Browse files
Workaround disabled "var_dump"
1 parent 77603ba commit 60d1b67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ErrorHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function screamAt($levels, $replace = false)
355355
private function reRegister(int $prev)
356356
{
357357
if ($prev !== $this->thrownErrors | $this->loggedErrors) {
358-
$handler = set_error_handler('var_dump');
358+
$handler = set_error_handler('is_int');
359359
$handler = \is_array($handler) ? $handler[0] : null;
360360
restore_error_handler();
361361
if ($handler === $this) {
@@ -490,7 +490,7 @@ public function handleError($type, $message, $file, $line)
490490
$log = 0;
491491
} else {
492492
if (\PHP_VERSION_ID < (\PHP_VERSION_ID < 70400 ? 70316 : 70404)) {
493-
$currentErrorHandler = set_error_handler('var_dump');
493+
$currentErrorHandler = set_error_handler('is_int');
494494
restore_error_handler();
495495
}
496496

@@ -601,7 +601,7 @@ public static function handleFatalError(array $error = null)
601601
$sameHandlerLimit = 10;
602602

603603
while (!\is_array($handler) || !$handler[0] instanceof self) {
604-
$handler = set_exception_handler('var_dump');
604+
$handler = set_exception_handler('is_int');
605605
restore_exception_handler();
606606

607607
if (!$handler) {

0 commit comments

Comments
 (0)