This commit is contained in:
2020-10-29 18:17:25 +08:00
parent 6839b64be8
commit 53ae43b79b
198 changed files with 708 additions and 850 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Console;
@@ -21,13 +21,13 @@ abstract class AbstractConsole extends Component
/**
* @var Command[]
*/
public $commands = [];
public array $commands = [];
/** @var Input $parameters */
private $parameters;
private Input $parameters;
/** @var array */
private $_config;
private array $_config;
/**
* @param array $config
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Console;
+1
View File
@@ -1,5 +1,6 @@
<?php
declare(strict_types=1);
namespace Console;
+1
View File
@@ -1,5 +1,6 @@
<?php
declare(strict_types=1);
namespace Console;
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Console;
+3 -2
View File
@@ -1,5 +1,6 @@
<?php
declare(strict_types=1);
namespace Console;
@@ -11,9 +12,9 @@ use Snowflake\Abstracts\Input;
*/
class DefaultCommand extends Command
{
public $command = 'list';
public string $command = 'list';
public $description = 'help';
public string $description = 'help';
public function onHandler(Input $dtl)
{
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Console;