Skip to content
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 false positive on static calls on classes where both static and dynamic calls are possible #173

Closed
wants to merge 2 commits into from
Closed

Fix false positive on static calls on classes where both static and dynamic calls are possible #173

wants to merge 2 commits into from

Conversation

PrinsFrank
Copy link

When a method can be called both dynamically and statically, the method is marked as dynamic and static calls are not allowed as outlined in #140 . This change fixes false positives when methods can be called both static and dynamically.

@PrinsFrank PrinsFrank changed the title Allow static call when both static and dynamic function are present Fix false positive on static calls on classes where both static and dynamic calls are possible Apr 28, 2022
@ondrejmirtes
Copy link
Member

I don’t think this logic makes sense. If a method already exists, the presence of __callStatic does not mean anything.

@PrinsFrank PrinsFrank closed this Apr 29, 2022
@PrinsFrank PrinsFrank deleted the fix-false-positives-on-both-dynamic-and-static-methods branch April 29, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants