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

AbstractFunctionRestrictions: prevent some typical misidentifications of function calls #1317

Merged
merged 2 commits into from
Mar 1, 2018

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 1, 2018

Prevent class declarations being confused with function calls

Includes unit test.

Fixes #898

N.B.: I do still intend to pull a much more comprehensive class to correctly analyze T_STRING tokens, but that's still a work in progress. In the mean time, this is a simple fix to make.


[Edit]: I've added a second commit along the same lines for preventing use statement aliases being confused with function call names.

Fixes #956

…ed with function calls

Includes unit test.

Fixes 898
…onfused with function calls

Includes unit test.

Fixes 956
@jrfnl jrfnl force-pushed the feature/898-improve-function-call-detection branch from ce5a6d5 to 875bb2a Compare March 1, 2018 12:08
@jrfnl jrfnl added this to the 1.0.0 milestone Mar 1, 2018
@jrfnl jrfnl changed the title AbstractFunctionRestrictions: prevent class declarations being confused with function calls AbstractFunctionRestrictions: prevent some typical misidentifications of function calls Mar 1, 2018
@JDGrimes JDGrimes merged commit 9498a5b into develop Mar 1, 2018
@JDGrimes JDGrimes deleted the feature/898-improve-function-call-detection branch March 1, 2018 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants