-
Notifications
You must be signed in to change notification settings - Fork 3
Alllow PHP 8.4 #62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alllow PHP 8.4 #62
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #62 +/- ##
=========================================
Coverage 98.08% 98.08%
Complexity 253 253
=========================================
Files 10 10
Lines 627 627
=========================================
Hits 615 615
Misses 12 12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…instead of "latest". This change is needed because with WP 6.8 (latest in May 2025), the static analysis fail due invalid code in PHP 7.4. See also: php-stubs/wordpress-stubs#277
tfrommen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we tracking anywhere that we need/want to revert to latest as soon as possible?
Otherwise, this is looking good. 👍
|
Just internal. I'll set myself a reminder to check regarding the releases, but I've also left a note in the commit so that we know why it is 6.7 fixed. 💪🏻 |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This PR will remove the restriction of PHP
<8.4to support PHP 8.4.Right now, the static analysis for PHP 7.4 is failing. No code was changed, so it seems like the error is happening in a different location. I've also tested PHPStan 2.1.7, which worked before (2 months ago) but now also fails. Same as the latest version 2.1.14. The only thing that has changed in between is the WordPress version (using
latest.phpfrom inpsyde/wp-stubs).I've decided to move the PHP 8.4 to a separate step for PHP Unit Testing. The "dependency-versions" with "lowest" will not work with PHP 8.4 due to missing support (Mockery, Patchwork, ...).