Remove unused variable
This commit is contained in:
parent
781c923c93
commit
129694f650
@ -92,7 +92,7 @@ class EventDispatcher implements EventDispatcherInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->listeners[$eventName] as $priority => $listeners) {
|
foreach ($this->listeners[$eventName] as $priority => $listeners) {
|
||||||
if (false !== ($key = array_search($listener, $listeners, true))) {
|
if (false !== array_search($listener, $listeners, true)) {
|
||||||
return $priority;
|
return $priority;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user