Skip to content

Commit

Permalink
Merge branch '4.3' into 4.4
Browse files Browse the repository at this point in the history
* 4.3:
  Avoid stale-if-error if kernel.debug = true, because it hides errors
  [Console] Fix SymfonyQuestionHelper tests sometimes failing on AppVeyor
  [Workflow] Fix configuration node reference for "initial_marking"
  expand listener in place
  [DI] deferred exceptions in ResolveParameterPlaceHoldersPass
  • Loading branch information
chalasr committed Jan 10, 2020
2 parents 578626e + 75f99d7 commit 9e3de19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private function sortListeners(string $eventName)
$this->sorted[$eventName] = [];

foreach ($this->listeners[$eventName] as &$listeners) {
foreach ($listeners as $k => $listener) {
foreach ($listeners as $k => &$listener) {
if (\is_array($listener) && isset($listener[0]) && $listener[0] instanceof \Closure && 2 >= \count($listener)) {
$listener[0] = $listener[0]();
$listener[1] = $listener[1] ?? '__invoke';
Expand Down

0 comments on commit 9e3de19

Please sign in to comment.