Skip to content

Commit

Permalink
#251 Interactive installer should default to 8.0 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
T2L committed Jul 7, 2022
1 parent 9d2178f commit a837a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config/Install/Step/PhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ final class PhpVersion extends AbstractInstallStep implements InstallConfigStepI
* {@inheritdoc}
*/
public function install(array &$config): void {
$choices = ['7.2' => '7.2', '7.3' => '7.3', '7.4' => '7.4'];
$default = '7.3';
$choices = ['7.4' => '7.4', '8.0' => '8.0', '8.1' => '8.1'];
$default = '8.0';
$question = "\nPlease specify PHP version <question>[$default]</question>: ";
$config['php_version'] = $this->io->select($question, $choices, $default, FALSE, "\nSpecified value '%s' is not a valid PHP version");
}
Expand Down

0 comments on commit a837a82

Please sign in to comment.