@@ -23,11 +23,11 @@ interface EventDispatcherInterface
23
23
/**
24
24
* Dispatches an event to all registered listeners.
25
25
*
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
31
31
*
32
32
* @return Event
33
33
*/
@@ -64,7 +64,7 @@ public function removeSubscriber(EventSubscriberInterface $subscriber);
64
64
/**
65
65
* Gets the listeners of a specific event or all listeners sorted by descending priority.
66
66
*
67
- * @param string $eventName The name of the event
67
+ * @param string|null $eventName The name of the event
68
68
*
69
69
* @return array The event listeners for the specified event, or all event listeners by event name
70
70
*/
@@ -85,7 +85,7 @@ public function getListenerPriority($eventName, $listener);
85
85
/**
86
86
* Checks whether an event has any registered listeners.
87
87
*
88
- * @param string $eventName The name of the event
88
+ * @param string|null $eventName The name of the event
89
89
*
90
90
* @return bool true if the specified event has any listeners, false otherwise
91
91
*/
0 commit comments