mirror of
https://github.com/lkeme/BiliHelper-personal.git
synced 2025-12-19 09:30:10 +08:00
[fix(Schedule)] Return value must be of type array,null returned
This commit is contained in:
parent
03c3850a04
commit
5bb1b202c3
@ -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) ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user