Open
Description
When implementing the EventSubscriberInterface of Symfony, the structure of the array being returned from getSubscribedEvents
is already validated by phpstan thanks to the phpdoc return type, (see https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php) except for one requirement: the fact that the subscribed listener is the name of a public method of the subscriber class.
It would be great to provide a custom rule comparing those method names to the list of public methods of the class.
Metadata
Metadata
Assignees
Labels
No labels