-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Cleanup: don't use void return value from method calls. #39516
base: 2.4-develop
Are you sure you want to change the base?
Cleanup: don't use void return value from method calls. #39516
Conversation
Hi @hostep. Thank you for your contribution!
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 |
…ound while scanning on level 0.
bb90c4c
to
7774d4a
Compare
@magento run all tests |
@magento run Static Tests, Integration Tests |
@magento create issue |
Description (*)
This is just some minor cleanup. Sometimes we called methods that didn't return anything (void) and then used that result value. Which is really not needed.
Found issues while running phpstan on level 0 on the entire codebase:
This is my ongoing effort on getting the entire Magento codebase clean so running phpstan on level 0 no longer gives any errors anymore (after this PR, we have about ~440 issues to go still ...)
Also see magento/magento2-page-builder#881
Related Pull Requests
magento/magento2-page-builder#881
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
app/code/Magento/Downloadable
,app/code/Magento/Eav
,app/code/Magento/Store
&lib/internal/Magento/Framework/HTTP/
directories only, as running it on the entire codebase might take a very long time (multiple hours sometimes, depending on how strong your machine is) ...Questions or comments
Check the first commit to see the real changes, the second commit deals with fixing static test failures.
Contribution checklist (*)
Resolved issues: