Skip to content

Commit 16a4329

Browse files
authored
Merge pull request #209 from mrrobot47/add/8.1
Add PHP 8.1 support
2 parents c703981 + 135347a commit 16a4329

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/WordPress.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function __construct() {
130130
* : Set custom source directory for site inside htdocs.
131131
*
132132
* [--php=<php-version>]
133-
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0 and latest.
133+
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1 and latest.
134134
* ---
135135
* default: latest
136136
* options:
@@ -140,6 +140,7 @@ public function __construct() {
140140
* - 7.3
141141
* - 7.4
142142
* - 8.0
143+
* - 8.1
143144
* - latest
144145
* ---
145146
*
@@ -366,7 +367,7 @@ public function create( $args, $assoc_args ) {
366367
}
367368
$this->site_data['alias_domains'] = substr( $this->site_data['alias_domains'], 0, - 1 );
368369

369-
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 'latest' ];
370+
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 'latest' ];
370371
if ( ! in_array( $this->site_data['php_version'], $supported_php_versions ) ) {
371372
$old_version = $this->site_data['php_version'];
372373
$floor = (int) floor( $this->site_data['php_version'] );

0 commit comments

Comments
 (0)