Skip to content

Commit

Permalink
This is exactly what's empty for
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky authored Apr 30, 2017
1 parent 5bd8542 commit 8d27d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/EventManager.php
Original file line number Diff line number Diff line change
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 8d27d3a

Please sign in to comment.