-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix PHPDocs for \Magento\Framework\Data\Collection::getItemById #38439
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
Fix PHPDocs for \Magento\Framework\Data\Collection::getItemById #38439
Conversation
Hi @MTheProgrammer. 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 give me test instance |
Hi @MTheProgrammer. Thank you for your request. I'm working on Magento instance for you. |
Hi @MTheProgrammer, here is your Magento Instance: https://296b3eb03075feb591a2247b997bcc77.instances-prod.magento-community.engineering |
@magento run all tests |
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.
Thank you for your contribution!
@magento create issue |
@magento run all tests |
It fails Semantic Version Checker test because of the fix in PHPDocs, but no API is changed in reality. Code is the same. How to deal with this?
|
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests EE, Semantic Version Checker |
@magento run all tests |
@magento run all tests |
As SVC tests are failing we have raised a internal approval jira AC-11580, hence moving this to Pending Approval. |
Since we got the approval for SVC failure AC-11580, moving this to extended testing because of failed builds. |
@magento run all tests |
@magento run Functional Tests CE, Functional Tests EE, Functional Tests B2B, Integration Tests, WebAPI Tests |
@magento run Functional Tests EE |
Functional Tests CE, Functional Tests EE and Functional Tests B2B are different on last two runs on same commit. Functional Tests CE : Functional Tests EE : Functional Tests B2B : |
Add null as possible type returned by
getItemById
method.Method returns null when item is not found.
PHPStan complains in the code using that method:
Sample usage:
Result in PHPStorm:

Description (*)
Adds
null
type to PHPDocs of\Magento\Framework\Data\Collection::getItemById
.Fixes minor grammar issues in PHPDocs of that class.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
if
condition specified in the PR summaryTreat PHPDoc types as certain
(usually it is enabled by default)if condition is always true
Questions or comments
Contribution checklist (*)
Resolved issues: