diff --git a/src/PHPCensor/Command/ScheduleBuildCommand.php b/src/PHPCensor/Command/ScheduleBuildCommand.php index aeeadee7..69d89270 100644 --- a/src/PHPCensor/Command/ScheduleBuildCommand.php +++ b/src/PHPCensor/Command/ScheduleBuildCommand.php @@ -69,7 +69,8 @@ class ScheduleBuildCommand extends Command $difference = new \DateInterval("P{$sinceDays}D"); $date->sub($difference); - $projects = $this->projectStore->getAll()['items']; + $projects = $this->projectStore->getAll(); + $projects = $projects['items']; /** @var Project $project */ foreach ($projects as $project) { $latestBuild = $this->buildStore->getLatestBuilds($project->getId(), 1);