[EventDispatcher] Remove unneded count()

This commit is contained in:
Gabriel Ostrolucký 2017-04-01 00:21:40 +02:00 committed by GitHub
parent 6008489153
commit 9a1915f88b

View File

@ -80,7 +80,7 @@ class EventDispatcher implements EventDispatcherInterface
*/ */
public function hasListeners($eventName = null) public function hasListeners($eventName = null)
{ {
return (bool) count($this->getListeners($eventName)); return (bool) $this->getListeners($eventName);
} }
/** /**