8000 expand listener in place · symfony/symfony@f5d4073 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5d4073

Browse files
committed
expand listener in place
1 parent 4ee84b3 commit f5d4073

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