Skip to content

Commit efb8208

Browse files
authored
Update EventDispatcherAdapter.php
1 parent 0a496a9 commit efb8208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Adapters/EventDispatcherAdapter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function dispatch(object $event = null, string $eventName = null) : objec
6161
*
6262
* @api
6363
*/
64-
public function addListener($eventName, $listener, $priority = 0)
64+
public function addListener(string $eventName, callable $listener, int $priority = 0): void
6565
{
6666
$this->symfonyDispatcher->addListener($eventName, $listener, $priority);
6767
}
@@ -87,7 +87,7 @@ public function addSubscriber(EventSubscriberInterface $subscriber)
8787
* @param string $eventName The event to remove a listener from
8888
* @param callable $listenerToBeRemoved The listener to remove
8989
*/
90-
public function removeListener($eventName, $listenerToBeRemoved)
90+
public function removeListener(string $eventName, callable $listenerToBeRemoved)
9191
{
9292
$this->symfonyDispatcher->removeListener($eventName, $listenerToBeRemoved);
9393
}

0 commit comments

Comments
 (0)