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'];