Skip to content

Commit 991602c

Browse files
committed
fix removed deprecation symfony/http-kernel ^7.0 'HttpKernelInterface::MAIN_REQUEST'
Signed-off-by: FilippeB <filippe.b@gmail.com>
1 parent c11314b commit 991602c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/EventListener/JsonApiProblemExceptionListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private function parseDataForException(Exception $exception): array
199199
];
200200
}
201201

202-
private function buildEvent(Request $request, Exception $exception = null): ExceptionEvent
202+
private function buildEvent(Request $request, ?Exception $exception = null): ExceptionEvent
203203
{
204204
$exception ??= new Exception('error');
205205

@@ -208,7 +208,7 @@ private function buildEvent(Request $request, Exception $exception = null): Exce
208208
return new ExceptionEvent(
209209
$httpKernel->reveal(),
210210
$request,
211-
HttpKernelInterface::MASTER_REQUEST,
211+
HttpKernelInterface::MAIN_REQUEST,
212212
$exception
213213
);
214214
}

0 commit comments

Comments
 (0)