Skip to content

Commit eb2ecf8

Browse files
authored
Merge pull request #46 from VincentLanglet/patch-1
Add dynamic return type for getListeners
2 parents da349ae + 1c4fad6 commit eb2ecf8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Doctrine/Common/EventManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function dispatchEvent($eventName, ?EventArgs $eventArgs = null)
4848
* @param string|null $event The name of the event.
4949
*
5050
* @return object[]|object[][] The event listeners for the specified event, or all event listeners.
51+
* @psalm-return ($event is null ? object[][] : object[])
5152
*/
5253
public function getListeners($event = null)
5354
{

0 commit comments

Comments
 (0)