diff --git a/src/Listener/StaticConsoleListener.php b/src/Listener/StaticConsoleListener.php index 2354abb..a6391c0 100644 --- a/src/Listener/StaticConsoleListener.php +++ b/src/Listener/StaticConsoleListener.php @@ -119,7 +119,7 @@ private function getPreviousState(TaskList $taskList): array $index = spl_object_id($taskList); /** @var array> $previous */ - $previous = $this->taskLists[$index]['previous']; + $previous = $this->taskLists[$index]['previous'] ?? []; return $previous; }