You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EventSubscriberInterface from Symfony has an @return annotation, and all classes that implement it and have no native return type get a deprecation error message.
class Foo implements EventSubscriberInterface
{
publicstaticfunctiongetSubscribedEvents()
{
}
}
Method "Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents()" might add "array" as a native return type declaration in the future. Do the same in implementation "Foo" now to avoid errors or add an explicit @return annotation to suppress this message.
It would be nice if we could get the error in PHPStan instead of running the actual application :)
The text was updated successfully, but these errors were encountered:
The EventSubscriberInterface from Symfony has an
@return
annotation, and all classes that implement it and have no native return type get a deprecation error message.It would be nice if we could get the error in PHPStan instead of running the actual application :)
The text was updated successfully, but these errors were encountered: