-
Notifications
You must be signed in to change notification settings - Fork 227
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
Use php 8.4 for phpstan github workflow and fix all deprecation errors #7220
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
For test (share results of):
|
@jeawhanlee @Mai-Saad so we are fine to merge this one? |
Testrail report: 2 fails with errors in debug.log: |
Thanks @jeawhanlee
@piotrbak @wp-media/engineering-plugin-team are we OK to update those dependencies in this PR or we need another issues with dedicated PRs? |
@wordpressfan We could either create one separate issue for both upgrades, or do it within this PR. The mobile detect update seems to be huge. |
We agreed on updating Action Scheduler's package then create a dedicated PR for Mobile Detect update. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
need to retest the failed tests from the report. |
There are still some deprecation notices relating to Action Scheduler: PHP Deprecated: ActionScheduler_ActionFactory::get_stored_action(): Implicitly marking parameter $schedule as nullable is deprecated, the explicit nullable type must be used instead in /home/boyetesz/public_html/test/wp-content/plugins/wp-rocket/inc/Dependencies/ActionScheduler/classes/ActionScheduler_ActionFactory.php on line 21 |
Last week, Action scheduler released 3.9.1 with some deprecation fixes, updated it now, and will open a github issue to check league container and see if they fixed that on their side or not without delaying this PR. |
With recent commit to update AS to 3.9.1, There's no more deprecation notice relating to AS, however, we still have deprecation notices for League Container & Mobile Detect packages. We are all good here, since this will not be handled in this PR so it can move forward. |
Description
Fixes #7219
Here we update the CI workflow to use php 8.4 also fix all deprecation reported issues.
Type of change
Detailed scenario
Everything is mentioned in the issue and slack discussion:
https://wp-media.slack.com/archives/CUT7FLHF1/p1736364885301529
Technical description
Documentation
N/A
New dependencies
N/A
Risks
N/A
Mandatory Checklist
Code validation
Code style
Unticked items justification
If some mandatory items are not relevant, explain why in this section.
Additional Checks