From 6839b64be8463a4806e23e456fdd5ed26cf9f029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 29 Oct 2020 11:19:02 +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 --- Console/Command.php | 4 ++-- HttpServer/Command.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Console/Command.php b/Console/Command.php index b78632bf..fbe9090f 100644 --- a/Console/Command.php +++ b/Console/Command.php @@ -12,8 +12,8 @@ use Snowflake\Abstracts\BaseObject; abstract class Command extends BaseObject implements CommandInterface { - public $command = ''; - public $description = ''; + public string $command = ''; + public string $description = ''; /** * @return string diff --git a/HttpServer/Command.php b/HttpServer/Command.php index 22662a95..df87f3dd 100644 --- a/HttpServer/Command.php +++ b/HttpServer/Command.php @@ -16,10 +16,10 @@ use Snowflake\Snowflake; class Command extends \Console\Command { - public $command = 'sw:server'; + public string $command = 'sw:server'; - public $description = 'server start|stop|reload|restart'; + public string $description = 'server start|stop|reload|restart'; const ACTIONS = ['start', 'stop', 'restart'];