-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Represent callable strings as strings #1741
Conversation
Honestly, how about we consider I feel like we can't do it 100% right anyway (without some very advanced reflection and docblock parsing and even then...) and the false-positive rate is going to be a lot smaller than the current situation. |
4617759
to
97712d0
Compare
Ok, another take with the simpler logic, representing all callable strings as strings. |
Please add a test. |
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.
Thanks, this will reduce false-positives! 👍
I'm honestly not sure what the logic should be here. A simple callable string like "file" I don't think should be assumed to be a callable. But seems a lot more reasonable to represent a callable string containing "::" as callable. Here I also represent callable strings containing an underscore as callables.
Fixes #1734