-
Notifications
You must be signed in to change notification settings - Fork 65
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
Open
hostep
wants to merge
3
commits into
magento:develop
Choose a base branch
from
hostep:fixed-returning-from-method-that-doesnt-return
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Cleanup: don't use void return value from method calls. #881
hostep
wants to merge
3
commits into
magento:develop
from
hostep:fixed-returning-from-method-that-doesnt-return
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ile scanning on level 0.
6 tasks
@magento run all tests |
engcom-Hotel
approved these changes
Jan 6, 2025
m2-community-project
bot
added
Progress: approved
and removed
Progress: ready for review
labels
Jan 6, 2025
@magento create issue |
This was referenced Jan 6, 2025
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: