Skip to content

Commit 3a861ac

Browse files
committed
minor symfony#30829 [EventDispatcher] cleanup (ro0NL)
This PR was merged into the 3.4 branch. Discussion ---------- [EventDispatcher] cleanup | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> forgotten in symfony#29411 (https://github.com/symfony/symfony/pull/29411/files#diff-a72bc1daccda0ec7bfcfae0e8d3df141L287) Commits ------- 19134c0 [EventDispatcher] cleanup
2 parents 4f94b17 + 19134c0 commit 3a861ac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ private function postProcess($eventName)
290290
if (null !== $this->logger) {
291291
$this->logger->debug('Notified event "{event}" to listener "{listener}".', $context);
292292
}
293-
294-
if (!isset($this->called[$eventName])) {
295-
$this->called[$eventName] = new \SplObjectStorage();
296-
}
297293
} else {
298294
$this->callStack->detach($listener);
299295
}

0 commit comments

Comments
 (0)