[Issue] Cleanup: don't use void return value from method calls. #39524
Labels
Area: Framework
Component: Downloadable
Component: Eav
Component: Store
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: PR in progress
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
This issue is automatically created based on existing pull request: #39516: Cleanup: don't use void return value from method calls.
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 (*)
The text was updated successfully, but these errors were encountered: