Skip to content

Commit 5857d48

Browse files
Workaround disabled "var_dump"
1 parent 8085df2 commit 5857d48

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
@@ -375,7 +375,7 @@ public function screamAt(int $levels, bool $replace = false): int
375375
private function reRegister(int $prev): void
376376
{
377377
if ($prev !== $this->thrownErrors | $this->loggedErrors) {
378-
$handler = set_error_handler('var_dump');
378+
$handler = set_error_handler('is_int');
379379
$handler = \is_array($handler) ? $handler[0] : null;
380380
restore_error_handler();
381381
if ($handler === $this) {
@@ -522,7 +522,7 @@ public function handleError(int $type, string $message, string $file, int $line)
522522
$log = 0;
523523
} else {
524524
if (\PHP_VERSION_ID < (\PHP_VERSION_ID < 70400 ? 70316 : 70404)) {
525-
$currentErrorHandler = set_error_handler('var_dump');
525+
$currentErrorHandler = set_error_handler('is_int');
526526
restore_error_handler();
527527
}
528528

@@ -639,7 +639,7 @@ public static function handleFatalError(array $error = null): void
639639
$sameHandlerLimit = 10;
640640

641641
while (!\is_array($handler) || !$handler[0] instanceof self) {
642-
$handler = set_exception_handler('var_dump');
642+
$handler = set_exception_handler('is_int');
643643
restore_exception_handler();
644644

645645
if (!$handler) {

0 commit comments

Comments
 (0)