Declare returned type.

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
This commit is contained in:
Yup 2021-07-05 20:03:53 +03:00 committed by GitHub
parent ba7e97d528
commit 9ba0a9118a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}