Cleanup: don't use void return value from method calls. #881
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: