diff --git a/Classes/Controller/HealthStatusController.php b/Classes/Controller/HealthStatusController.php index b6dfc48..2acc3df 100644 --- a/Classes/Controller/HealthStatusController.php +++ b/Classes/Controller/HealthStatusController.php @@ -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(),