Skip to content

Commit 327e993

Browse files
committed
[Tests] Added missing argument types
1 parent 21dc39a commit 327e993

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/bundle/Core/EventListener/ExceptionListenerTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public function testGetSubscribedEvents(): void
6060
}
6161

6262
/**
63-
* @param \Exception $exception
64-
*
6563
* @return \Symfony\Component\HttpKernel\Event\ExceptionEvent
6664
*/
6765
private function generateExceptionEvent(Exception $exception): ExceptionEvent
@@ -119,7 +117,7 @@ public function testUnauthorizedException(): void
119117
*
120118
* @param \Exception&\Ibexa\Core\Base\Translatable $exception
121119
*/
122-
public function testBadRequestException($exception): void
120+
public function testBadRequestException(Exception $exception): void
123121
{
124122
$messageTemplate = 'some message template';
125123
$translationParams = ['some' => 'thing'];
@@ -260,7 +258,7 @@ private function mockTranslatorTrans(
260258
private function assertSameException(
261259
string $expectedException,
262260
ExceptionEvent $event,
263-
$exception,
261+
Exception $exception,
264262
string $translatedMessage
265263
): void {
266264
$this->listener->onKernelException($event);

0 commit comments

Comments
 (0)