From 5bb1b202c3bb92074072e03e3746e0b76b58004f Mon Sep 17 00:00:00 2001 From: Lkeme <19500576+lkeme@users.noreply.github.com> Date: Tue, 11 Oct 2022 14:01:05 +0800 Subject: [PATCH] [fix(Schedule)] Return value must be of type array,null returned --- src/Schedule/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schedule/Schedule.php b/src/Schedule/Schedule.php index 661baa5..0466f84 100644 --- a/src/Schedule/Schedule.php +++ b/src/Schedule/Schedule.php @@ -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) ?? []; } /**