Skip to content

Commit

Permalink
Merge pull request #235 from finagin/patch-1
Browse files Browse the repository at this point in the history
[2.x] Can't get value of snake case variables
  • Loading branch information
taylorotwell authored Oct 27, 2021
2 parents 6504158 + f9024ae commit 717d9b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Console/RunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ protected function getOptions()
$option[1] = true;
}

$options[Str::camel($option[0])] = $option[1];
$optionKey = $option[0];

$options[Str::camel($optionKey)] = $option[1];
$options[Str::snake($optionKey)] = $option[1];
}

return $options;
Expand Down

0 comments on commit 717d9b9

Please sign in to comment.