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
Fix detecting magic static methods #10704
Merged
weirdan
merged 22 commits into
vimeo:5.x
from
issidorov:fix-detecting-magic-static-methods
Feb 17, 2024
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6e361aa
Failed and regression tests for magic static methods
issidorov 29b4c38
Add argument with_pseudo for method finding
issidorov 083b8e2
Add issue message for magic methods
issidorov 2567a99
Extract checking method "__callStatic" from block "if"
issidorov df2067d
Resolve testReferencedMethods
issidorov 0ba346c
Delete code of replacing variable method_id
issidorov 5f89fa1
Resolved all tests
issidorov 4fce070
Failed and regression tests with usage config
issidorov 14316f5
Resolve testAnnotationWithoutCallConfigWithExtendsWithStatic
issidorov 6009631
Fix invalid test
issidorov 6f17469
Failed tests for StaticInvocation and NonStaticSelfCall
issidorov 4c645e1
Resolve tests for StaticInvocation and NonStaticSelfCall
issidorov d588b3d
Support for testing with the creation of a list of issues
issidorov 9b6ef8b
Failed and regression tests with creation of a list of issues
issidorov e940de5
Resolve tests with creation of a list of issues
issidorov db92991
Fix message in TestCase::assertHasIssueType
issidorov cfd0fd1
Use snake_case in TestCase::assertHasIssueType
issidorov 08a479a
Rename to TestCase::assertHasIssue
issidorov b7a2080
Fix description in InvalidCodeAnalysisWithIssuesTestTrait
issidorov 3724062
Fix description InvalidCodeAnalysisWithIssuesTestTrait
issidorov 5a66742
Failed and regression tests with suppression "UndefinedMethod"
issidorov 8a70bc2
Resolve tests with suppression "UndefinedMethod"
issidorov File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not used until line N70, so move it there, perhaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been thinking about it too.
This is a declaration of a local variable.
And it seemed to me more beautiful to do this at the beginning of the method, next to the declaration of other variables.
Does it need to be fixed? Please confirm.