Skip to content

Commit 2787024

Browse files
bug #35278 [EventDispatcher] expand listener in place (xabbuh)
This PR was merged into the 4.3 branch. Discussion ---------- [EventDispatcher] expand listener in place | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #35259 | License | MIT | Doc PR | Commits ------- f5d4073 expand listener in place
2 parents 68b96fa + f5d4073 commit 2787024

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
@@ -270,7 +270,7 @@ private function sortListeners(string $eventName)
270270
$this->sorted[$eventName] = [];
271271

272272
foreach ($this->listeners[$eventName] as &$listeners) {
273-
foreach ($listeners as $k => $listener) {
273+
foreach ($listeners as $k => &$listener) {
274274
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure) {
275275
$listener[0] = $listener[0]();
276276
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy