simplified code
This commit is contained in:
parent
eac27275b1
commit
aaab30ea80
@ -92,7 +92,7 @@ class EventDispatcher implements EventDispatcherInterface
|
||||
}
|
||||
|
||||
foreach ($this->listeners[$eventName] as $priority => $listeners) {
|
||||
if (false !== array_search($listener, $listeners, true)) {
|
||||
if (false !== in_array($listener, $listeners, true)) {
|
||||
return $priority;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user