Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 76d7513

Browse files
Add changelog
1 parent a8a93da commit 76d7513

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

UPGRADE-7.1.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
UPGRADE FROM 7.0 to 7.1
2+
=======================
3+
4+
HttpKernel
5+
-----
6+
7+
* `ExceptionEvent` now takes an optional `$isKernelTerminating` parameter

src/Symfony/Component/HttpKernel/HttpKernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private function finishRequest(Request $request, int $type): void
241241
*/
242242
private function handleThrowable(\Throwable $e, Request $request, int $type): Response
243243
{
244-
$event = new ExceptionEvent($this, $request, $type, $e, $this->terminating);
244+
$event = new ExceptionEvent($this, $request, $type, $e, isKernelTerminating: $this->terminating);
245245
$this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
246246

247247
// a listener might have replaced the exception

src/Symfony/Component/HttpKernel/Tests/EventListener/ErrorListenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function testCSPHeaderIsRemoved()
244244
$this->assertFalse($response->headers->has('content-security-policy'), 'CSP header has been removed');
245245
}
246246

247-
public function testTerminated(): void
247+
public function testTerminating(): void
248248
{
249249
$listener = new ErrorListener('foo', $this->createMock(LoggerInterface::class));
250250

0 commit comments

Comments
 (0)