From ddb2a7d4b536fdc24cf904d234d349b5171a8980 Mon Sep 17 00:00:00 2001 From: Julien Rosset Date: Mon, 16 Oct 2023 17:15:13 +0200 Subject: [PATCH] CommandCall: add default value for argument list --- src/CliProgram/CommandCall/CommandCall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CliProgram/CommandCall/CommandCall.php b/src/CliProgram/CommandCall/CommandCall.php index 41eae1f..46258fc 100644 --- a/src/CliProgram/CommandCall/CommandCall.php +++ b/src/CliProgram/CommandCall/CommandCall.php @@ -27,7 +27,7 @@ class CommandCall { * @param string|Command $commandName The new command name * @param null|Arrayy $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()); }