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

Be stricter when checking if __construct exists #4323

Merged
merged 2 commits into from
Dec 26, 2020

Conversation

TysonAndre
Copy link
Member

Noticed when investigating #4320 that InferPureVisitor
would cause the placeholder method to be created (depending on config
settings), which would cause the warning about a missing constructor to
fail to be emitted, even with no conditionals.

The original bug report had is_callable, which Phan currently does not
use to infer the existence of methods. See #4186

Noticed when investigating phan#4320 that InferPureVisitor
would cause the placeholder method to be created (depending on config
settings), which would cause the warning about a missing constructor to
fail to be emitted, even with no conditionals.

The original bug report had `is_callable`, which Phan currently does not
use to infer the existence of methods. See phan#4186
@TysonAndre TysonAndre merged commit 7a33aeb into phan:master Dec 26, 2020
@TysonAndre TysonAndre deleted the stricter-has-method-check branch December 26, 2020 17:52
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.

None yet

1 participant