Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[EventDispathcer] Fix removeListener

  • Loading branch information...
commit 3b20aeffc3432e0bf2b43f55238f754fe384d5a5 1 parent bb9bd2b
@vicb vicb authored fabpot committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  EventDispatcher.php
View
2  EventDispatcher.php
@@ -100,7 +100,7 @@ public function removeListener($eventName, $listener)
}
foreach ($this->listeners[$eventName] as $priority => $listeners) {
- if (false !== ($key = array_search($listener, $listeners))) {
+ if (false !== ($key = array_search($listener, $listeners, true))) {
unset($this->listeners[$eventName][$priority][$key], $this->sorted[$eventName]);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.