8000 minor #20185 Remove unused variable (lin-lu) · symfony/symfony@eac2727 · GitHub
[go: up one dir, main page]

Skip to content

Commit eac2727

Browse files
committed
minor #20185 Remove unused variable (lin-lu)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #20185). Discussion ---------- Remove unused variable Remove unused variable $key. Commits ------- 129694f Remove unused variable
2 parents 781c923 + 129694f commit eac2727

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
@@ -92,7 +92,7 @@ public function getListenerPriority($eventName, $listener)
9292
}
9393

9494
foreach ($this->listeners[$eventName] as $priority => $listeners) {
95-
if (false !== ($key = array_search($listener, $listeners, true))) {
95+
if (false !== array_search($listener, $listeners, true)) {
9696
return $priority;
9797
}
9898
}

0 commit comments

Comments
 (0)
0