-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
add phpstan-deprecation-rules #36148
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @rogerdz. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento create issue |
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.
Hi @rogerdz ,
Thank you for your contribution !
I think it is good to add this rule to static test.
@magento run Functional Tests EE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Hi @rogerdz, We have verify the package is installed correctly. But while verifying changes no warning is shown if deprecated function/class is being used. Before PR we have checked using After PR No changes are seen when we are using Please let us know if we are missing any steps here or any other way to verify changes. |
Hi @engcom-Echo , right command is : vendor/bin/phpstan analyse --configuration dev/tests/static/testsuite/Magento/Test/Php/_files/phpstan/phpstan.neon --level 1 --memory-limit=4G --error-format=filtered app/code/Magento/BundleSampleData/Model/Product.php |
@magento run Functional Tests EE,Functional Tests CE |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE, Unit Tests |
Description (*)
Static Tests: add phpstan/phpstan-deprecation-rules for detecting usage of deprecated classes, methods, properties, constants and traits.
Related Pull Requests
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: