Skip to content

Commit

Permalink
Merge pull request #436 from mrrobot47/scrape/latest
Browse files Browse the repository at this point in the history
Scrape latest tag from php version
  • Loading branch information
mrrobot47 committed May 14, 2024
2 parents b234955 + e99aab7 commit a1be7c3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/helper/class-ee-site.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = []
* : Enable wildcard SSL on site.
*
* [--php=<php-version>]
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1 and latest.
* : 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.
* ---
* options:
* - 5.6
Expand All @@ -405,7 +405,6 @@ protected function delete_site( $level, $site_url, $site_fs_path, $db_data = []
* - 8.1
* - 8.2
* - 8.3
* - latest
* ---
*
* [--proxy-cache=<on-or-off>]
Expand Down Expand Up @@ -778,10 +777,6 @@ protected function update_php( $args, $assoc_args ) {

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

if ( '8.2' === $php_version ) {
$php_version = 'latest';
}

if ( $php_version === $this->site_data->php_version ) {
EE::error( 'Site ' . $this->site_data->site_url . ' is already at PHP version: ' . $php_version );
}
Expand Down

0 comments on commit a1be7c3

Please sign in to comment.