Skip to content

Commit 75a3586

Browse files
More short closures + isset instead of null checks + etc.
1 parent ad5325f commit 75a3586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public function screamAt(int $levels, bool $replace = false): int
359359
private function reRegister(int $prev): void
360360
{
361361
if ($prev !== ($this->thrownErrors | $this->loggedErrors)) {
362-
$handler = set_error_handler('is_int');
362+
$handler = set_error_handler(static fn () => null);
363363
$handler = \is_array($handler) ? $handler[0] : null;
364364
restore_error_handler();
365365
if ($handler === $this) {

0 commit comments

Comments
 (0)