Skip to content

Commit bfe3c87

Browse files
authored
Merge pull request #111 from mrrobot47/fix/php-version-fallback
fix(php): remove stale PHP version fallbacks
2 parents 215f852 + 0d4f094 commit bfe3c87

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/PHP.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function create( $args, $assoc_args ) {
198198
$this->site_data['site_fs_path'] = WEBROOT . $this->site_data['site_url'];
199199
$this->cache_type = \EE\Utils\get_flag_value( $assoc_args, 'cache' );
200200
$this->site_data['site_ssl_wildcard'] = \EE\Utils\get_flag_value( $assoc_args, 'wildcard' );
201-
$this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php', 'latest' );
201+
$this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php' );
202202
$this->site_data['app_sub_type'] = 'php';
203203

204204
$this->site_data['site_container_fs_path'] = get_public_dir( $assoc_args );
@@ -248,8 +248,6 @@ public function create( $args, $assoc_args ) {
248248
\EE::confirm( sprintf( 'EEv4 does not support PHP %s. Continue with PHP %s?', $old_version, $this->site_data['php_version'] ) );
249249
}
250250

251-
$this->site_data['php_version'] = ( 8.0 === (double) $this->site_data['php_version'] ) ? 'latest' : $this->site_data['php_version'];
252-
253251
if ( $this->cache_type && ! $local_cache ) {
254252
\EE\Service\Utils\init_global_container( GLOBAL_REDIS );
255253
}

0 commit comments

Comments
 (0)