- Notifications
You must be signed in to change notification settings - Fork 9.4k
Feature/php8.1 constructor property promotion wee graph ql #36975
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
Feature/php8.1 constructor property promotion wee graph ql #36975
Conversation
…1-constructor-property-promotion-wee-graph-ql
Replace allmost all properties with constructor property promotion in module WeeeGraphQl: https://stitcher.io/blog/constructor-promotion-in-php-8 * Readable code * Make Magento less complex by removing properties which take up a lot of lines. * Imported all classes to make code more readable. I think the code would be a lot cleaner if all modules start using constructor promotions, since of 2.4.6 php 7.4 is dropped we can now make use of it. So let's start on it right now :).
Hi @leonhelmus. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@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. |
app/code/Magento/WeeeGraphQl/Model/Resolver/FixedProductTax.php Outdated Show resolved Hide resolved
app/code/Magento/WeeeGraphQl/Model/Resolver/Quote/FixedProductTax.php Outdated Show resolved Hide resolved
Apply suggestions from code review
…romotion-wee-graph-ql
@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 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. |
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.
✔ Approved.
Failing tests look not related to changes from this PR.
…romotion-wee-graph-ql
@magento run all tests |
Hello @leonhelmus Thanks for the collaboration & contribution! ✔️ QA Passed Steps to reproduce
Before: ✖️ Builds are failed. Hence, moving this PR to Extended Testing. Thanks |
@magento run Functional Tests B2B, Functional Tests EE |
Failed to run the builds. Please try to re-run them later. |
Hello @leonhelmus, please sign CLA. |
@engcom-Dash I have now signed a CLA |
@magento run all tests |
…romotion-wee-graph-ql
@magento run all tests |
…romotion-wee-graph-ql
@magento run all tests |
@magento run Integration Tests, Functional Tests EE, Functional Tests CE |
@magento create issue |
88090b7
into magento:2.4-develop
Description (*)
Replace allmost all properties with constructor property promotion in module wee graph ql:
https://stitcher.io/blog/constructor-promotion-in-php-8
I think the code would be a lot cleaner if all modules start using constructor promotions, since of 2.4.6 php 7.4 is dropped we can now make use of it. So let's start on it right now :).
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: