2 Commits

Author SHA1 Message Date
40ceb7a86c fix Array to string conversion 2022-11-07 23:01:09 +10:00
8e52c2128c fix Too few arguments to function command::__construct() 2022-11-07 22:27:58 +10:00
3 changed files with 3 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ class command
*/
public function __construct(
public Closure $program,
public array $accounts
public array $accounts = []
) {
}

View File

@@ -47,7 +47,7 @@ class core
}
// Запись в реестр
$this->patterns .= [$pattern];
$this->patterns []= [$pattern];
return $pattern;
}

View File

@@ -39,7 +39,7 @@ class pattern
public function command(command $command): static
{
// Запись в реестр
$this->commands .= [$command];
$this->commands []= [$command];
return $this;
}