Skip to content

Commit 1fa8411

Browse files
[gha] swap the php versions we use in jobs
1 parent e55b0b1 commit 1fa8411

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ErrorHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ public function handleException(\Throwable $exception)
609609
}
610610

611611
$loggedErrors = $this->loggedErrors;
612-
$this->loggedErrors = $exception === $handlerException ? 0 : $this->loggedErrors;
612+
if ($exception === $handlerException) {
613+
$this->loggedErrors &= ~$type;
614+
}
613615

614616
try {
615617
$this->handleException($handlerException);

Tests/phpt/exception_rethrown.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ if (true) {
1616
{
1717
public function log($level, $message, array $context = []): void
1818
{
19-
echo 'LOG: ', $message, "\n";
19+
if (0 !== strpos($message, 'Deprecated: ')) {
20+
echo 'LOG: ', $message, "\n";
21+
}
2022
}
2123
}
2224
}
@@ -34,5 +36,5 @@ Exception {%S
3436
#message: "foo"
3537
#code: 0
3638
#file: "%s"
37-
#line: 25
39+
#line: 27
3840
}

0 commit comments

Comments
 (0)