Skip to content

Commit c138c0c

Browse files
authored
ci: Test against PHP 8.3 (#34312)
It's released, let's start testing against it.
1 parent e209749 commit c138c0c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/files/generate-ci-matrix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
$matrix = array();
5959

6060
// Add PHP tests.
61-
foreach ( array( '7.0', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ) as $php ) {
61+
foreach ( array( '7.0', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ) as $php ) {
6262
$matrix[] = array(
6363
'name' => "PHP tests: PHP $php WP latest",
6464
'script' => 'test-php',

.github/versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ PNPM_VERSION=8.6.8
66

77
# Other useful version numbers.
88
MIN_PHP_VERSION=7.0
9-
MAX_PHP_VERSION=8.2
9+
MAX_PHP_VERSION=8.3

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
strategy:
172172
fail-fast: false
173173
matrix:
174-
php-versions: [ '7.0', '7.2', '7.4', '8.0', '8.1', '8.2' ]
174+
php-versions: [ '7.0', '7.2', '7.4', '8.0', '8.1', '8.2', '8.3' ]
175175
experimental: [ false ]
176176

177177
steps:

docs/monorepo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ All GitHub Actions configuration for the monorepo, including CI, lives in `.gith
4242

4343
## Compatibility
4444

45-
All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.0 to 8.2.
45+
All projects should be compatible with PHP versions WordPress supports. That's currently PHP 7.0 to 8.3.
4646

4747
## First Time
4848

@@ -210,15 +210,15 @@ If a project contains PHP tests (typically PHPUnit), it must define `.scripts.te
210210

211211
A MySQL database is available if needed; credentials may be found in `~/.my.cnf`. Note that the host must be specified as `127.0.0.1`, as when passed `localhost` PHP will try to connect via a Unix domain socket which is not available in the Actions environment.
212212

213-
Tests are run with a variety of supported PHP versions from 7.0 to 8.2. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
213+
Tests are run with a variety of supported PHP versions from 7.0 to 8.3. If you have tests that only need to be run once, run them when `PHP_VERSION` matches that in `.github/versions.sh`.
214214

215215
#### PHP tests for non-plugins
216216

217217
For all project types other than WordPress plugins, the necessary version of PHPUnit and/or any other tools should be pulled in via Composer.
218218

219219
We currently make use of the following packages in testing; it's encouraged to use these rather than introducing other tools that serve the same purpose.
220220

221-
* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 6.5 to 9.0, to support PHP 7.0 to 8.2.
221+
* [yoast/phpunit-polyfills](https://packagist.org/packages/yoast/phpunit-polyfills) supplies polyfills for compatibility with PHPUnit 6.5 to 9.0, to support PHP 7.0 to 8.3.
222222
* Do not use `Yoast\PHPUnitPolyfills\TestCases\TestCase` or `Yoast\PHPUnitPolyfills\TestCases\XTestCase`. Just use the `@before`, `@after`, `@beforeClass`, and `@afterClass` annotations directly.
223223
* PHPUnit's built-in mocking is used for class mocks.
224224
* [brain/monkey](https://packagist.org/packages/brain/monkey) is used for mocking functions, and can also provide some functions for minimal WordPress compatibility.

0 commit comments

Comments
 (0)