From 6a58139c45fd93711fffac08c077af4171cb3dbd Mon Sep 17 00:00:00 2001 From: hrs-o Date: Mon, 4 Oct 2021 19:47:00 +0900 Subject: [PATCH] fix "Automatic conversion of false to array is deprecated" That occurs in PHP8.1 https://wiki.php.net/rfc/autovivification_false --- src/CronSchedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CronSchedule.php b/src/CronSchedule.php index 4455755..cb9c3e1 100644 --- a/src/CronSchedule.php +++ b/src/CronSchedule.php @@ -56,7 +56,7 @@ class CronSchedule private $_cronYears = []; // The language table - private $_lang = false; + private $_lang = []; /** * Minimum and maximum years to cope with the Year 2038 problem in UNIX. We run PHP which most likely runs on a UNIX environment so we