8000 [EventDispatcher] Fixed phpdoc on interface · symfony/symfony@94bd28e · GitHub
[go: up one dir, main page]

Skip to content

Commit 94bd28e

Browse files
committed
[EventDispatcher] Fixed phpdoc on interface
1 parent 5c71d7b commit 94bd28e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/EventDispatcher/EventDispatcherInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ interface EventDispatcherInterface
2323
/**
2424
* Dispatches an event to all registered listeners.
2525
*
26-
* @param string $eventName The name of the event to dispatch. The name of
27-
* the event is the name of the method that is
28-
* invoked on listeners.
29-
* @param Event $event The event to pass to the event handlers/listeners
30-
* If not supplied, an empty Event instance is created
26+
* @param string $eventName The name of the event to dispatch. The name of
27+
* the event is the name of the method that is
28+
* invoked on listeners.
29+
* @param Event|null $event The event to pass to the event handlers/listeners
30+
* If not supplied, an empty Event instance is created
3131
*
3232
* @return Event
3333
*/
@@ -64,7 +64,7 @@ public function removeSubscriber(EventSubscriberInterface $subscriber);
6464
/**
6565
* Gets the listeners of a specific event or all listeners sorted by descending priority.
6666
*
67-
* @param string $eventName The name of the event
67+
* @param string|null $eventName The name of the event
6868
*
6969
* @return array The event listeners for the specified event, or all event listeners by event name
7070
*/
@@ -85,7 +85,7 @@ public function getListenerPriority($eventName, $listener);
8585
/**
8686
* Checks whether an event has any registered listeners.
8787
*
88-
* @param string $eventName The name of the event
88+
* @param string|null $eventName The name of the event
8989
*
9090
* @return bool true if the specified event has any listeners, false otherwise
9191
*/

0 commit comments

Comments
 (0)
0