Skip to content

Commit d3922f0

Browse files
derrabusnicolas-grekas
authored andcommitted
Fix inconsistent return points.
1 parent c844654 commit d3922f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

EventDispatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getListeners($eventName = null)
7979
public function getListenerPriority($eventName, $listener)
8080
{
8181
if (empty($this->listeners[$eventName])) {
82-
return;
82+
return null;
8383
}
8484

8585
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure) {
@@ -97,6 +97,8 @@ public function getListenerPriority($eventName, $listener)
9797
}
9898
}
9999
}
100+
101+
return null;
100102
}
101103

102104
/**

0 commit comments

Comments
 (0)