Skip to content

Commit d03895d

Browse files
committed
Add PHP 8.4 support
Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>
1 parent b7de5af commit d03895d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/WordPress.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function __construct() {
131131
* : Set custom source directory for site inside htdocs.
132132
*
133133
* [--php=<php-version>]
134-
* : 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.
134+
* : 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.
135135
* ---
136136
* default: 8.2
137137
* options:
@@ -144,6 +144,7 @@ public function __construct() {
144144
* - 8.1
145145
* - 8.2
146146
* - 8.3
147+
* - 8.4
147148
* - latest
148149
* ---
149150
*
@@ -370,7 +371,7 @@ public function create( $args, $assoc_args ) {
370371
}
371372
$this->site_data['alias_domains'] = substr( $this->site_data['alias_domains'], 0, - 1 );
372373

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

0 commit comments

Comments
 (0)