Skip to content

Commit

Permalink
Fix null command references (in service commands list) during Drupal …
Browse files Browse the repository at this point in the history
…bootstrap phase (which causes "PHP Fatal error: Cannot redeclare drupal_error_levels() (previously declared in..." in test_81_drupal10_highest CI pipeline)
  • Loading branch information
Sergei Churilo committed Jun 14, 2022
1 parent 950c41b commit 841fa04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/ServiceCommandlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public function addCommandReference($command): void

public function getCommandList(): array
{
return $this->commandList;
return array_filter($this->commandList);
}
}

0 comments on commit 841fa04

Please sign in to comment.