Skip to content

Commit

Permalink
[EventDispathcer] Fix removeListener
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored and fabpot committed Feb 10, 2013
1 parent bb9bd2b commit 3b20aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventDispatcher.php
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit 3b20aef

Please sign in to comment.