Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 19, 2024
1 parent 8a79ac9 commit 59f3b51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1978,14 +1978,18 @@ private function getActiveErrorHandlers(): array

while (true) {
$previousHandler = set_error_handler(static fn () => false);

restore_error_handler();

if ($previousHandler === null) {
break;
}

$res[] = $previousHandler;

restore_error_handler();
}

$res = array_reverse($res);

foreach ($res as $handler) {
Expand Down

0 comments on commit 59f3b51

Please sign in to comment.