Skip to content

Commit 05ab89e

Browse files
Merge branch '5.4' into 6.0
* 5.4: Avoid duplicated session listener registration in tests [HttpFoundation] fix SessionHandlerFactory using connections [gha] swap the php versions we use in jobs [DoctrineBridge] fix calling get_class on non-object Update PR template ResponseListener needs only 2 parameters [Lock] create lock table if it does not exist [HttpClient] Fix handling error info in MockResponse [SecurityBundle] Fix invalid reference with `always_authenticate_before_granting` Bump Symfony version to 5.4.1 Update VERSION for 5.4.0 Update CHANGELOG for 5.4.0
2 parents 0e8f0c1 + 1e3cb35 commit 05ab89e

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
@@ -549,7 +549,9 @@ public function handleException(\Throwable $exception)
549549
}
550550

551551
$loggedErrors = $this->loggedErrors;
552-
$this->loggedErrors = $exception === $handlerException ? 0 : $this->loggedErrors;
552+
if ($exception === $handlerException) {
553+
$this->loggedErrors &= ~$type;
554+
}
553555

554556
try {
555557
$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)