Skip to content

Commit 33584bb

Browse files
committed
Increase the minimum required version of PHP
This increases the minimum required version of PHP to 7.2, which is the current minimum required version to run WordPress.
1 parent 653f965 commit 33584bb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To use the Runner, the following is required (testing WordPress 6.5):
7575

7676
- Server / hosting (infrastructure) with the usual configuration you use
7777
- A database where you can test (tables will be created and destroyed several times)
78-
- PHP 7.0+ (view )
78+
- PHP 7.2+
7979
- MySQL 5.5+ / MariaDB 10.0+
8080
- NodeJS 20.x / npm 10.x / grunt
8181
- PHP Composer
@@ -393,4 +393,4 @@ If you have questions about the process or run into test failures along the way,
393393

394394
## License
395395

396-
See [LICENSE](LICENSE) for project license.
396+
See [LICENSE](LICENSE) for project license.

prepare.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ function curl_selected_bits(\$k) { return in_array(\$k, array('version', 'ssl_ve
304304
log_message( 'Environment PHP Version: ' . $env_php_version );
305305

306306
/**
307-
* Checks if the detected PHP version is below 7.0.
308-
* The test runner requires PHP version 7.0 or above, and if the environment's PHP version
307+
* Checks if the detected PHP version is below 7.2.
308+
* The test runner requires PHP version 7.2 or above, and if the environment's PHP version
309309
* is lower, it logs an error message and could terminate the script.
310310
*/
311-
if ( version_compare( $env_php_version, '7.0', '<' ) ) {
312-
// Logs an error message indicating the test runner's incompatibility with PHP versions below 7.0.
313-
error_message( 'The test runner is not compatible with PHP < 7.0.' );
311+
if ( version_compare( $env_php_version, '7.2', '<' ) ) {
312+
// Logs an error message indicating the test runner's incompatibility with PHP versions below 7.2.
313+
error_message( 'The test runner is not compatible with PHP < 7.2.' );
314314
}
315315

316316
/**

0 commit comments

Comments
 (0)