Skip to content

Commit

Permalink
feat: handling sf deprecation suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
gscioni-axelerant committed Aug 23, 2024
1 parent 473ae65 commit 21b75ea
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/EventListener/BlameListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public function onKernelRequest(RequestEvent $event): void
}
}

public static function getSubscribedEvents()
/**
* @return array<string, string>
*/
public static function getSubscribedEvents(): array
{
return array(
KernelEvents::REQUEST => 'onKernelRequest',
Expand Down
3 changes: 3 additions & 0 deletions src/EventListener/IpTraceListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function onKernelRequest(RequestEvent $event): void
}
}

/**
* @return array<string, array<int, int|string>>
*/
public static function getSubscribedEvents(): array
{
return array(
Expand Down
5 changes: 4 additions & 1 deletion src/EventListener/LocaleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ public function onKernelRequest(RequestEvent $event): void
$this->translatableListener->setTranslatableLocale($event->getRequest()->getLocale());
}

public static function getSubscribedEvents()
/**
* @return array<string, string>
*/
public static function getSubscribedEvents(): array
{
return array(
KernelEvents::REQUEST => 'onKernelRequest',
Expand Down
5 changes: 4 additions & 1 deletion src/EventListener/LoggerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public function onKernelRequest(RequestEvent $event): void
}
}

public static function getSubscribedEvents()
/**
* @return array<string, string>
*/
public static function getSubscribedEvents(): array
{
return array(
KernelEvents::REQUEST => 'onKernelRequest',
Expand Down

0 comments on commit 21b75ea

Please sign in to comment.