-
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
[PHPDOC] Fix bad phpdoc for Magento\Framework\Message\ManagerInterface #39153
base: 2.4-develop
Are you sure you want to change the base?
[PHPDOC] Fix bad phpdoc for Magento\Framework\Message\ManagerInterface #39153
Conversation
Hi @dimitriBouteille. 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 |
@magento run all tests |
@magento run Static Tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Unit 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.
Hello @dimitriBouteille,
Thanks for the contribution!
The changes look good to us. However, please address the failed tests, particularly the static tests.
Thanks
@magento run all tests |
@magento run all tests |
@magento run all tests |
…triBouteille/magento2 into bad-phpdoc-ManagerInterface
@magento run all tests |
@magento run all tests |
@engcom-Hotel, I have fixed the static test failures. Requesting for the review. Thank you! |
As @ihor-sviziev started reviewing the PR again, moving it back to Changes Requested from Merge in Progress. |
dc6e909
to
5d7e258
Compare
@magento run all tests |
@magento run all tests |
@magento run Integration Tests, Functional Tests CE, Functional Tests EE |
The review changes have been implemented and approved hence moving it to Ready for Testing. |
No manual testing is required here, as only the bad doc blocks are getting updated. Currently moving this PR to Extended Testing as the build is failing. |
@magento run WebAPI Tests |
@magento run all tests |
@magento run Integration Tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Unit Tests |
As I am working on the build stabilization activity of this PR, requesting you to please don't merge latest codebase in this PR. If any input needed from your end will let you know. Thank you! |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Integration Tests |
One of the Functional B2B test failure is inconsistent in the last two builds, it seem to be flaky and the other one is a known issue. They neither part of PR nor failing because of the PR changes. ![]() Run 2: Known Issue: One of the Functional CE test failure is inconsistent in the last two builds, it seem to be flaky . They neither part of PR nor failing because of the PR changes. Hence moving it to Merge In Progress. Run 1: ![]() |
Description (*)
This PR fix the bad phpdoc for
\Magento\Framework\Message\ManagerInterface
and remove all duplicate phpdoc in\Magento\Framework\Message\Manager
(use inheritdoc syntaxe).Actually all
add*Message
functions (addErrorMessage, addSuccess, addWarningMessage, ...) accept astring
value in$message
variable.This PR allows to pass either a
\Magento\Framework\Phrase
or astring
.Here is an example where the type
\Magento\Framework\Phrase
is used :magento2/app/code/Magento/Checkout/Controller/Cart/Delete.php
Line 38 in 0cfe4a3
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.
Contribution checklist (*)
Resolved issues: