Skip to content

Commit

Permalink
Merge pull request #107 from mrrobot47/add/php-8.4-support
Browse files Browse the repository at this point in the history
Add PHP 8.4 support
  • Loading branch information
mrrobot47 authored Nov 26, 2024
2 parents 09af1a6 + 80a837d commit df623a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function __construct() {
* : Create separate db container instead of using global db.
*
* [--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, 8.2, 8.3, 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, 8.3, 8.4 and latest.
* ---
* default: latest
* options:
Expand All @@ -94,6 +94,7 @@ public function __construct() {
* - 8.1
* - 8.2
* - 8.3
* - 8.4
* - latest
* ---
*
Expand Down Expand Up @@ -228,7 +229,7 @@ public function create( $args, $assoc_args ) {
}
$this->site_data['alias_domains'] = substr( $this->site_data['alias_domains'], 0, - 1 );

$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 'latest' ];
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 'latest' ];
if ( ! in_array( $this->site_data['php_version'], $supported_php_versions ) ) {
$old_version = $this->site_data['php_version'];
$floor = (int) floor( $this->site_data['php_version'] );
Expand Down

0 comments on commit df623a4

Please # to comment.