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()
This commit is contained in:
commit
03755ee8b3
@ -80,7 +80,7 @@ class EventDispatcher implements EventDispatcherInterface
|
||||
*/
|
||||
public function hasListeners($eventName = null)
|
||||
{
|
||||
return (bool) count($this->getListeners($eventName));
|
||||
return (bool) $this->getListeners($eventName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user