Skip to content

Commit e99aab7

Browse files
committed
Scrape latest tag from php version
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent b234955 commit e99aab7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/helper/class-ee-site.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = []
393393
* : Enable wildcard SSL on site.
394394
*
395395
* [--php=<php-version>]
396-
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1 and latest.
396+
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 and 8.3.
397397
* ---
398398
* options:
399399
* - 5.6
@@ -405,7 +405,6 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = []
405405
* - 8.1
406406
* - 8.2
407407
* - 8.3
408-
* - latest
409408
* ---
410409
*
411410
* [--proxy-cache=<on-or-off>]
@@ -778,10 +777,6 @@ protected function update_php( $args, $assoc_args ) {
778777

779778
$php_version = get_flag_value( $assoc_args, 'php', false );
780779

781-
if ( '8.2' === $php_version ) {
782-
$php_version = 'latest';
783-
}
784-
785780
if ( $php_version === $this->site_data->php_version ) {
786781
EE::error( 'Site ' . $this->site_data->site_url . ' is already at PHP version: ' . $php_version );
787782
}

0 commit comments

Comments
 (0)