Skip to content

Commit fa1fd0f

Browse files
committed
fix: get the environment argument instead of the option
1 parent a761e81 commit fa1fd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Php/PhpVersionCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function configure()
4343
*/
4444
protected function perform(InputInterface $input, OutputInterface $output)
4545
{
46-
$environment = (string) $this->getStringOption($input, 'environment');
46+
$environment = $this->getStringArgument($input, 'environment');
4747

4848
$output->info(sprintf('Getting PHP version information from the "<comment>%s</comment>" environment', $environment));
4949

0 commit comments

Comments
 (0)