We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17a1f5d commit 566df6bCopy full SHA for 566df6b
src/CommandLineParser.php
@@ -23,13 +23,14 @@ public function execute(CommandInterface $command = null): CommandInterface
23
24
public function setFileNames(array $fileNames): CommandInterface
25
{
26
- $this->args["FILE1"] = $fileNames["FILE1"];
27
- $this->args["FILE2"] = $fileNames["FILE2"];
28
-
+ $keys = array_keys($fileNames);
+ foreach ($keys as $key) {
+ $this->args[$key] = $fileNames[$key];
29
+ }
30
return $this;
31
}
32
- public function getFileNames()
33
+ public function getFileNames(): array
34
35
return $this->args;
36
0 commit comments