[fix(Schedule)] Return value must be of type array,null returned

This commit is contained in:
Lkeme 2022-10-11 14:01:05 +08:00
parent 03c3850a04
commit 5bb1b202c3

View File

@ -53,7 +53,7 @@ class Schedule extends SingleTon
protected function reader(): array
{
$data = file_get_contents($this->repository);
return json_decode($data, true);
return json_decode($data, true) ?? [];
}
/**