@@ -50,8 +50,8 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
50
50
public function interact (InputInterface $ input , ConsoleStyle $ io , Command $ command ): void
51
51
{
52
52
$ command ->addArgument ('extension ' , InputArgument::OPTIONAL );
53
- $ command ->addArgument ('targets ' , InputArgument::OPTIONAL , '' , [] );
54
- $ command ->addArgument ('values ' , InputArgument::OPTIONAL , '' , [] );
53
+ $ command ->addArgument ('targets ' , InputArgument::OPTIONAL );
54
+ $ command ->addArgument ('values ' , InputArgument::OPTIONAL );
55
55
56
56
$ chosenExtension = $ io ->choice (
57
57
'Language (<fg=yellow>JavaScript</> or <fg=yellow>TypeScript</>) ' ,
@@ -139,7 +139,7 @@ private function askForNextTarget(ConsoleStyle $io, array $targets, bool $isFirs
139
139
$ questionText = 'Add another target? Enter the target name (or press <return> to stop adding targets) ' ;
140
140
}
141
141
142
- $ targetName = $ io ->ask ($ questionText , null , function (?string $ name ) use ($ targets ) {
142
+ $ targetName = $ io ->ask ($ questionText , validator: function (?string $ name ) use ($ targets ) {
143
143
if (\in_array ($ name , $ targets )) {
144
144
throw new \InvalidArgumentException (sprintf ('The "%s" target already exists. ' , $ name ));
145
145
}
0 commit comments