[PHPDOC] Fix bad phpdoc Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
Description (*)
This PR fix the bad phpdoc for \Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection.
-
joinLeft:- The first argument can be
stringorarray<string, array> - The 3th argument can be
stringorarray<string>
- The first argument can be
Here is an example where the type array is used :
https://github.com/magento/magento2/blob/d06337ad4d7a5a783030368a8d49aa70da6a5fca/app/code/Magento/Eav/Model/AttributeRepository.php#L114-L118
For example, with PHPSTAN is very complicated to setup the project with level 5 or higher :(
Related Pull Requests
None
Fixed Issues (if relevant)
None
Manual testing scenarios (*)
Setup PHPSTAN with level 5 or higher and run check.
Questions or comments
Contribution checklist (*)
- [ ] Pull request has a meaningful description of its purpose
- [x] All commits are accompanied by meaningful commit messages
- [x] All new or changed code is covered with unit/integration tests (if applicable)
- [x] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- [ ] All automated tests passed successfully (all builds are green)
Resolved issues:
- [x] resolves magento/magento2#40354: [PHPDOC] Fix bad phpdoc Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
Hi @dimitriBouteille. Thank you for your contribution! Here are some useful tips on how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:
-
@magento give me test instance- deploy test instance based on PR changes -
@magento give me 2.4-develop instance- deploy vanilla Magento instance
:exclamation: Automated tests can be triggered manually with an appropriate comment:
-
@magento run all tests- run or re-run all required tests against the PR changes -
@magento run <test-build(s)>- run or re-run specific test build(s) For example:@magento run Unit Tests
<test-build(s)> is a comma-separated list of build names.
Allowed build names are:
-
Database Compare -
Functional Tests CE -
Functional Tests EE -
Functional Tests B2B -
Integration Tests -
Magento Health Index -
Sample Data Tests CE -
Sample Data Tests EE -
Sample Data Tests B2B -
Static Tests -
Unit Tests -
WebAPI Tests -
Semantic Version Checker
You can find more information about the builds here :information_source: Run only required test builds during development. Run all test builds before sending your pull request for review.
For more details, review the Code Contributions documentation. Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento run all tests
@magento run all tests
@magento run all tests
Hello @dimitriBouteille, Thank you for your contribution. I am taking care of the static tests failure.
@magento run all tests
Hi @engcom-Dash Thanks you !
@magento run Unit Tests
@engcom-Hotel I’ve resolved the static test failure. Kindly review so we can move ahead with this PR.
@magento run all tests
@magento create issue
Hello @dimitriBouteille
Thanks for the contribution!
✔️ QA Passed
Preconditions: Install a fresh Magento 2.4-develop.
Manual Testing Scenarios
- Set up PHPStan in the local environment.
- Run the analysis command:
vendor/bin/phpstan analyse /opt/homebrew/var/www/magento2community/magento2/app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Collection.php
Before PR Changes
After PR Changes
Some Functional Builds are Failing, hence moving this PR for Extended Testing
@magento run all tests
The consistent failures in Functional CE, B2B,EE are known issues and JIRA is open for the same. The other failures are inconsistent and flaky. They neither part of the PR nor failing because of the PR changes.
CE
Build1
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/f5c42ffb6e009404e5328e1d7dbbdd77/Functional/allure-report-ce/index.html#categories/bdbf199525818fae7a8651db9eafe741
Build2
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/c7334ff5502544d383f75acb35cc295d/Functional/allure-report-ce/index.html#categories
EE
Build 1
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/9529ceeb8a1cfb38151f2baa1ad64236/Functional/allure-report-ee/index.html#categories
Build 2
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/c4b27f7e016425e0548934be3ab95793/Functional/allure-report-ee/index.html#categories
B2B
Build 1
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/7e8ef46a4cb8c82980c36b79ad7355bc/Functional/allure-report-b2b/index.html
Build 2
https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/39155/5cf140095e3da7da4bc810b6ffc9deb0/Functional/allure-report-b2b/index.html
Known Issues ApplyTaxesAndFptForSimpleProductWithCanadianPstOriginTest AC-16096 StorefrontFPTTaxInformationInShoppingCartForCustomerPhysicalQuoteTest ACQE-9074 StorefrontFPTTaxDiscountInShoppingCartTest AC-16096 StorefrontFPTTaxInformationInShoppingCartForGuestPhysicalQuoteTest AC-16096 AddingSeveralFPTToSimpleProductTest AC-16096 AdminFPTIncludingAndExcludingTaxVisibleOnNegotiableQuotePageTest AC-16096 AdminFPTVisibleOnNegotiableQuotePageTest AC-16096
Hence, Moving this PR to Merge In Progress