8000 minor #22237 [EventDispatcher] Remove unneded count() (ostrolucky) · symfony/symfony@03755ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 03755ee

Browse files
minor #22237 [EventDispatcher] Remove unneded count() (ostrolucky)
This PR was merged into the 2.7 branch. Discussion ---------- [EventDispatcher] Remove unneded count() | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 9a1915f [EventDispatcher] Remove unneded count()
2 parents c7163e2 + 9a1915f commit 03755ee

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)
0