You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3fded09
Browse filesBrowse the repository at this point in the historyBrowse files
authored
CI: Run PHP unit tests on PHP 8.4 and 8.5 (#79260)
* CI: Run PHP unit tests on PHP 8.4 and 8.5
WordPress 6.9 officially supports PHP 8.5, so Gutenberg should verify its
PHP unit tests pass on it too. Add 8.4 (previously missing) and 8.5 to the
test-php matrix, following the existing pattern: PRs test the oldest and
newest PHP (7.4 and 8.5) on the latest WP, while trunk grants previous-WP
coverage to those same boundary versions.
Co-Authored-By: Claude <noreply@anthropic.com>
* Tests: Guard ReflectionMethod/Property::setAccessible() for PHP 8.5
PHP 8.5 deprecates ReflectionMethod::setAccessible() and
ReflectionProperty::setAccessible(), which have had no effect since PHP 8.1.
The PHP unit test suite turns deprecation notices into errors, so these
calls broke the newly added PHP 8.5 matrix job with 65 errors.
Wrap the remaining unguarded calls in `if ( PHP_VERSION_ID < 80100 )`,
matching the pattern already used elsewhere in the codebase. The calls are
still required on PHP < 8.1 (which Gutenberg supports down to 7.4), where
private members are not reflectable without them.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
0 commit comments