Skip to content

Commit

Permalink
feat: suppress deprecation warnings for getSubscribedEvents()
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Feb 16, 2024
1 parent 9f7023e commit 7daf16d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/EventListener/BlameListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public function onKernelRequest(RequestEvent $event): void
}
}

/**
* @return string[]
*/
public static function getSubscribedEvents()

Check failure on line 54 in src/EventListener/BlameListener.php

View workflow job for this annotation

GitHub Actions / Static analysis

Return type (array<string>) of method Stof\DoctrineExtensionsBundle\EventListener\BlameListener::getSubscribedEvents() should be covariant with return type (array<string, array<int|string, array<int|string, int|string>|int|string>|string>) of method Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
{
return array(
Expand Down
3 changes: 3 additions & 0 deletions src/EventListener/LocaleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public function onKernelRequest(RequestEvent $event): void
$this->translatableListener->setTranslatableLocale($event->getRequest()->getLocale());
}

/**
* @return string[]
*/
public static function getSubscribedEvents()

Check failure on line 35 in src/EventListener/LocaleListener.php

View workflow job for this annotation

GitHub Actions / Static analysis

Return type (array<string>) of method Stof\DoctrineExtensionsBundle\EventListener\LocaleListener::getSubscribedEvents() should be covariant with return type (array<string, array<int|string, array<int|string, int|string>|int|string>|string>) of method Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
{
return array(
Expand Down
3 changes: 3 additions & 0 deletions src/EventListener/LoggerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public function onKernelRequest(RequestEvent $event): void
}
}

/**
* @return string[]
*/
public static function getSubscribedEvents()

Check failure on line 61 in src/EventListener/LoggerListener.php

View workflow job for this annotation

GitHub Actions / Static analysis

Return type (array<string>) of method Stof\DoctrineExtensionsBundle\EventListener\LoggerListener::getSubscribedEvents() should be covariant with return type (array<string, array<int|string, array<int|string, int|string>|int|string>|string>) of method Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()
{
return array(
Expand Down

0 comments on commit 7daf16d

Please sign in to comment.