Skip to content

Commit bd2d589

Browse files
authored
Merge pull request #225 from mrrobot47/scrape/latest
Scrape latest in php version entry
2 parents cbaf2ab + d158945 commit bd2d589

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/WordPress.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function __construct() {
133133
* [--php=<php-version>]
134134
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 and latest.
135135
* ---
136-
* default: latest
136+
* default: 8.2
137137
* options:
138138
* - 5.6
139139
* - 7.0
@@ -303,7 +303,7 @@ public function create( $args, $assoc_args ) {
303303
$this->cache_type = \EE\Utils\get_flag_value( $assoc_args, 'cache' );
304304
$wildcard_flag = \EE\Utils\get_flag_value( $assoc_args, 'wildcard' );
305305
$this->site_data['site_ssl_wildcard'] = 'subdom' === $this->site_data['app_sub_type'] || $wildcard_flag ? true : false;
306-
$this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php', 'latest' );
306+
$this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php', '8.2' );
307307
$this->site_data['app_admin_url'] = \EE\Utils\get_flag_value( $assoc_args, 'title', $this->site_data['site_url'] );
308308
$this->site_data['app_admin_username'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-user', \EE\Utils\random_name_generator() );
309309
$this->site_data['app_admin_password'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-pass', '' );
@@ -388,8 +388,6 @@ public function create( $args, $assoc_args ) {
388388
\EE::confirm( sprintf( 'EEv4 does not support PHP %s. Continue with PHP %s?', $old_version, $this->site_data['php_version'] ), $assoc_args );
389389
}
390390

391-
$this->site_data['php_version'] = ( 8.2 === (double) $this->site_data['php_version'] ) ? 'latest' : $this->site_data['php_version'];
392-
393391
if ( \EE\Utils\get_flag_value( $assoc_args, 'local-db' ) ) {
394392
$this->site_data['db_host'] = 'db';
395393
}

0 commit comments

Comments
 (0)