Skip to content

Commit aaa1ca6

Browse files
committed
2 parents d530844 + 726ff15 commit aaa1ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Adapters/EventDispatcherAdapter.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function removeSubscriber(EventSubscriberInterface $subscriber)
109109
*
110110
* @return array The event listeners for the specified event, or all event listeners by event name
111111
*/
112-
public function getListeners(string $eventName = null)
112+
public function getListeners(string $eventName = null): array
113113
{
114114
return $this->symfonyDispatcher->getListeners($eventName);
115115
}
@@ -121,7 +121,7 @@ public function getListeners(string $eventName = null)
121121
*
122122
* @return bool true if the specified event has any listeners, false otherwise
123123
*/
124-
public function hasListeners(string $eventName = null)
124+
public function hasListeners(string $eventName = null): bool
125125
{
126126
return ($this->symfonyDispatcher->hasListeners($eventName) ||
127127
$this->laravelDispatcher->hasListeners($eventName));
@@ -137,7 +137,7 @@ public function hasListeners(string $eventName = null)
137137
*
138138
* @return int|null The event listener priority
139139
*/
140-
public function getListenerPriority($eventName, $listener)
140+
public function getListenerPriority($eventName, $listener): ?int
141141
{
142142
return $this->symfonyDispatcher->getListenerPriority($eventName, $listener);
143143
}

0 commit comments

Comments
 (0)