Skip to content

Commit

Permalink
Merge pull request #96 from mrrobot47/add/8.1
Browse files Browse the repository at this point in the history
Add PHP 8.1 support
  • Loading branch information
mrrobot47 committed Mar 29, 2022
2 parents b4b582f + 192e4ed commit 2b14d12
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 and latest.
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1 and latest.
* ---
* default: latest
* options:
Expand All @@ -91,6 +91,7 @@ public function __construct() {
* - 7.3
* - 7.4
* - 8.0
* - 8.1
* - latest
* ---
*
Expand Down Expand Up @@ -225,7 +226,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, 'latest' ];
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, '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 2b14d12

Please sign in to comment.