Compare commits

..

2 Commits

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;
}