Skip to content

Commit

Permalink
[fix(Schedule)] Return value must be of type array,null returned
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeme committed Oct 11, 2022
1 parent a904fdd commit af702dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schedule/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function init(): void
protected function reader(): array
{
$data = file_get_contents($this->repository);
return json_decode($data, true);
return json_decode($data, true) ?? [];
}

/**
Expand Down

0 comments on commit af702dd

Please sign in to comment.