-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Use constructor property promotion in module send friend graph ql #37197
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 constructor property promotion in module send friend graph ql #37197
Conversation
Replace allmost all properties with constructor property promotion in module send friend graph ql: 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. |
@m2-github-services help |
@magento create issue |
QA is not required for this change since it only replaces variables with the constructor promotion property. Builds are failing, so moving it to extended testing. |
…romotion-send-friend-graph-ql
@magento run all tests |
@magento run Functional Tests CE, Functional Tests B2B |
The Functional B2B test failures are different in recent 2 successive builds and seems flaky. Hence moving this PR to merge in progress. Run 1: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/37197/f215f1b00cb2c7918404429330dd8b2f/Functional/allure-report-b2b/index.html#categories/b629bf17bc479f4e89c3e3816921323a/64c4edca627b3f03/ Run 2: https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/37197/ca5d83b8fe5b95cff6607115b3212ff8/Functional/allure-report-b2b/index.html#categories/16b25a50b4a8b68f5548cdba82ebd5f8/d9278e3eab0fc6de/ |
@engcom-Dash are you picking up all my pull requests 😄? If so i will put some more effort and add some more prs 😁 |
@leonhelmus Sorry, I just saw this today! Feel free to keep those PRs coming—we’d be more than happy to work on them 😄 |
…romotion-send-friend-graph-ql
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Integration Tests |
@magento run Functional Tests B2B, Functional Tests CE, Integration Tests |
Test failures for Functional B2B are inconsistent and seems to be flaky. They neither part of PR nor failing because of the PR changes. Test failures for Functional CE are inconsistent and seems to be flaky. They neither part of PR nor failing because of the PR changes. Hence Moving this PR in Merge In Progress. |
a8b93fe
into
magento:2.4-develop
Description (*)
Replace allmost all properties with constructor property promotion in module send friend graph ql: https://stitcher.io/blog/constructor-promotion-in-php-8
Readable code
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: