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

AssertTypeSpecifyingExtensionHelper: rootExpr with unknown variable to avoid always-true false positives #197

Merged

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented Oct 9, 2023

This should fix #193.

@janedbal
Copy link
Contributor Author

janedbal commented Oct 9, 2023

Optionally, we might do this hack only for those resolvers where false-positive is at risk (like the assertContains with Traversable).

Edit: done, it breaks stuff without that.

@ondrejmirtes ondrejmirtes merged commit 9499aec into phpstan:1.4.x Oct 9, 2023
31 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

ondrejmirtes pushed a commit that referenced this pull request Oct 9, 2023
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.

assertContains always claiming it'll return true
2 participants