Skip to content

Commit 21b75ea

Browse files
feat: handling sf deprecation suppression
1 parent 473ae65 commit 21b75ea

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

src/EventListener/BlameListener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ public function onKernelRequest(RequestEvent $event): void
4848
}
4949
}
5050

51-
public static function getSubscribedEvents()
51+
/**
52+
* @return array<string, string>
53+
*/
54+
public static function getSubscribedEvents(): array
5255
{
5356
return array(
5457
KernelEvents::REQUEST => 'onKernelRequest',

src/EventListener/IpTraceListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public function onKernelRequest(RequestEvent $event): void
3333
}
3434
}
3535

36+
/**
37+
* @return array<string, array<int, int|string>>
38+
*/
3639
public static function getSubscribedEvents(): array
3740
{
3841
return array(

src/EventListener/LocaleListener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ public function onKernelRequest(RequestEvent $event): void
2929
$this->translatableListener->setTranslatableLocale($event->getRequest()->getLocale());
3030
}
3131

32-
public static function getSubscribedEvents()
32+
/**
33+
* @return array<string, string>
34+
*/
35+
public static function getSubscribedEvents(): array
3336
{
3437
return array(
3538
KernelEvents::REQUEST => 'onKernelRequest',

src/EventListener/LoggerListener.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ public function onKernelRequest(RequestEvent $event): void
5555
}
5656
}
5757

58-
public static function getSubscribedEvents()
58+
/**
59+
* @return array<string, string>
60+
*/
61+
public static function getSubscribedEvents(): array
5962
{
6063
return array(
6164
KernelEvents::REQUEST => 'onKernelRequest',

0 commit comments

Comments
 (0)