CommandCall: add default value for argument list

2.x 2.4.1
Julien Rosset 2 years ago
parent 9440e3edb6
commit f4f5f8a943

@ -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 ($commandName, ?Arrayy $commandArguments) {
public function __construct ($commandName, ?Arrayy $commandArguments = null) {
$this->setCommandName($commandName);
$this->setCommandArguments($commandArguments ?? new Arrayy());
}

Loading…
Cancel
Save