minor #41995 [EventDispatcher] Declare return type of `getSubscribedEvents()` (Warxcell)

This PR was merged into the 4.4 branch.

Discussion
----------

[EventDispatcher] Declare return type of `getSubscribedEvents()`

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

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | kinda
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix
| License       | MIT
| Doc PR        |

Commits
-------

9ba0a9118a Declare returned type.
This commit is contained in:
Alexander M. Turek 2021-07-14 18:34:33 +02:00
commit 93270312d8
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();
}