Skip to content

Commit 67de9d2

Browse files
authored
Merge pull request #252 from WordPress/increase-minimum-php
Increase the minimum required version of PHP and clarify other minimums
2 parents 653f965 + 9a71bdf commit 67de9d2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ 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 )
79-
- MySQL 5.5+ / MariaDB 10.0+
78+
- PHP 7.2+
79+
- MySQL 5.5.5+ / MariaDB 5.5.5+
8080
- NodeJS 20.x / npm 10.x / grunt
8181
- PHP Composer
8282
- Git, RSync, WGet, UnZip
@@ -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)