8000 minor #41995 [EventDispatcher] Declare return type of `getSubscribedE… · alexpott/symfony@9327031 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9327031

Browse files
committed
minor symfony#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 ------- 9ba0a91 Declare returned type.
2 parents b16891e + 9ba0a91 commit 9327031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface EventSubscriberInterface
4343
* The code must not depend on runtime state as it will only be called at compile time.
4444
* All logic depending on runtime state must be put into the individual methods handling the events.
4545
*
46-
* @return array The event names to listen to
46+
* @return array<string, mixed> The event names to listen to
4747
*/
4848
public static function getSubscribedEvents();
4949
}

0 commit comments

Comments
 (0)
0