CommandCall: add default value for argument list

master 3.4.1
Julien Rosset 2 years ago
parent 6643ce813c
commit ddb2a7d4b5

@ -27,7 +27,7 @@ class CommandCall {
* @param string|Command $commandName The new command name
* @param null|Arrayy<string, mixed> $commandArguments The command new arguments
*/
public function __construct (string|Command $commandName, ?Arrayy $commandArguments) {
public function __construct (string|Command $commandName, ?Arrayy $commandArguments = null) {
$this->setCommandName($commandName);
$this->setCommandArguments($commandArguments ?? new Arrayy());
}

Loading…
Cancel
Save