Skip to content

Commit 9a1915f

Browse files
authored
[EventDispatcher] Remove unneded count()
1 parent 6008489 commit 9a1915f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/EventDispatcher/EventDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getListeners($eventName = null)
8080
*/
8181
public function hasListeners($eventName = null)
8282
{
83-
return (bool) count($this->getListeners($eventName));
83+
return (bool) $this->getListeners($eventName);
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)