From 26b428f381495c27a40533619cf55ae70d4700e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 15 Apr 2021 17:46:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Crontab/Crontab.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/System/Crontab/Crontab.php b/System/Crontab/Crontab.php index 7687faaf..e52a8263 100644 --- a/System/Crontab/Crontab.php +++ b/System/Crontab/Crontab.php @@ -109,12 +109,10 @@ abstract class Crontab extends BaseObject $this->name = $name; } - /** - * @param mixed $params - */ - public function setParams(...$params): void + + public function setParams(): void { - $this->params = $params; + $this->params = func_get_args(); } /**