-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix/php 8 compatibility errors warnings #9719
Conversation
… is deprecated in PHP 8.4.
…able type before than required arguments.
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
…ility-errors-warnings
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.
Thanks for working on this @alopezari
Changes look good to me. I did leave a query for Marcin about a change.
Feel free to merge once Marcin replies.
This issue is a follow up to #9697. The linked PR updated PHPCompatibility to apply rules for PHP 8 (up to 8.4) and therefore some PHPCS checks in the PHP Compatibility workflow started failing.
This new PR fixes those compatibility errors. I wanted to fix them on a separate PR to make both PRs easier to review.
Changes proposed in this Pull Request
Testing instructions
npm install
in your terminal../vendor/bin/phpcs --standard=phpcs-compat.xml.dist $(git ls-files | grep .php$)
.npm run lint:php -- --no-cache
.npm run psalm
.npm run up
.npm run test:php
.npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge