Skip to content

Commit 717d9b9

Browse files
authored
Merge pull request #235 from finagin/patch-1
[2.x] Can't get value of snake case variables
2 parents 6504158 + f9024ae commit 717d9b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Console/RunCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ protected function getOptions()
277277
$option[1] = true;
278278
}
279279

280-
$options[Str::camel($option[0])] = $option[1];
280+
$optionKey = $option[0];
281+
282+
$options[Str::camel($optionKey)] = $option[1];
283+
$options[Str::snake($optionKey)] = $option[1];
281284
}
282285

283286
return $options;

0 commit comments

Comments
 (0)