Skip to content

Commit 3db79f1

Browse files
Add a few more ??=
1 parent 55fe121 commit 3db79f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function terminate(Request $request, Response $response)
105105
*/
106106
public function terminateWithException(\Throwable $exception, Request $request = null)
107107
{
108-
if (!$request = $request ?: $this->requestStack->getMainRequest()) {
108+
if (!$request ??= $this->requestStack->getMainRequest()) {
109109
throw $exception;
110110
}
111111

0 commit comments

Comments
 (0)