Skip to content

Commit

Permalink
Declare returned type.
Browse files Browse the repository at this point in the history
Fixes 

Method getSubscribedEvents() return type has no value type specified in iterable type array.  
馃挕 See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type
  • Loading branch information
Warxcell committed Jul 5, 2021
1 parent f5741bb commit 432a5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventSubscriberInterface.php
Expand Up @@ -43,7 +43,7 @@ interface EventSubscriberInterface
* The code must not depend on runtime state as it will only be called at compile time.
* All logic depending on runtime state must be put into the individual methods handling the events.
*
* @return array The event names to listen to
* @return array<string, mixed> The event names to listen to
*/
public static function getSubscribedEvents();
}

0 comments on commit 432a5fb

Please sign in to comment.