-
Notifications
You must be signed in to change notification settings - Fork 66
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. #881
base: develop
Are you sure you want to change the base?
Cleanup: don't use void return value from method calls. #881
Conversation
…ile scanning on level 0.
@magento run all tests |
@magento create issue |
As this is the cleanup PR. So there is nothing to test in it. Hence moving it for further processing. Thanks |
@magento run Integration Tests, Functional Tests EE, Functional Tests CE, Functional Tests B2B |
@magento run all tests |
Hi @hostep, Thanks for the collaboration & contribution! ✔️ QA Passed Preconditions:
Before: ✖️ After: ✔️ Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run Functional Tests B2B, Functional Tests EE, Performance Acceptance Tests, WebAPI Tests |
Description (*)
This is just some minor cleanup. We called a method that didn't return anything (void) and then used that result value. Which is really not needed.
Found issue 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 this related PR: magento/magento2#39516
Story
?
Bug
?
Task
?
Fixed Issues (if relevant)
N/A
Builds
?
Related Pull Requests
magento/magento2#39516
Manual testing scenarios (*)
ext/magento/magento2-page-builder/
directory only, as running it on the entire Magento 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.
Checklist
Resolved issues: