Skip to content

Commit

Permalink
Merge pull request #21 from flownative/bugfix/unused-errors
Browse files Browse the repository at this point in the history
Add missing use of $errors in anonymous function
  • Loading branch information
fl0uW authored Sep 8, 2022
2 parents 17d6a2a + 5293eb0 commit e04f956
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/HealthStatusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function readyAction(): void
}
});

$taskRunner->onTaskResult(static function (TaskInterface $task, Result $result) use (&$success): void {
$taskRunner->onTaskResult(static function (TaskInterface $task, Result $result) use (&$errors, &$success): void {
if ($result->hasErrors()) {
$errors[] = [
'name' => $task->getName(),
Expand Down

0 comments on commit e04f956

Please sign in to comment.