We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had a custom class that extended Drupal\Core\Routing\RouteSubscriberBase.
The old code had:
public static function getSubscribedEvents(): {
which was not compatible with D10 RouteSubscriberBase's
public static function getSubscribedEvents(): array {
The text was updated successfully, but these errors were encountered:
This also happened with classes that implement EventSubscriberInterface without a base class.
Sorry, something went wrong.
This should have been caught by PHPStan at level 2. I thought.
I was using the Upgrade Status module -- sorry I don't know whether issues with deprecations should go on that module or here.
It didn't report any deprecations about getSubscribedEvents -- I had about 8 in total.
Ah yeah it does level nothing.
But even if it did, I forgot this wouldn't be caught. Because Symfony would still be old. So it's a valid thing to have and catch.
A forward checking return type rule.
No branches or pull requests
Feature request
I had a custom class that extended Drupal\Core\Routing\RouteSubscriberBase.
The old code had:
which was not compatible with D10 RouteSubscriberBase's
The text was updated successfully, but these errors were encountered: