Skip to content

Commit

Permalink
Merge pull request #789 from ostrolucky/patch-2
Browse files Browse the repository at this point in the history
This is exactly what's `empty` for
  • Loading branch information
Ocramius committed May 2, 2017
2 parents ad84a4d + 8d27d3a commit 319c2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/EventManager.php
Expand Up @@ -82,7 +82,7 @@ public function getListeners($event = null)
*/
public function hasListeners($event)
{
return isset($this->_listeners[$event]) && $this->_listeners[$event];
return !empty($this->_listeners[$event]);
}

/**
Expand Down

0 comments on commit 319c2bc

Please sign in to comment.