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

treatPhpDocTypesAsCertain + strict-rules casting bug #3760

Closed
dktapps opened this issue Aug 21, 2020 · 3 comments
Closed

treatPhpDocTypesAsCertain + strict-rules casting bug #3760

dktapps opened this issue Aug 21, 2020 · 3 comments

Comments

@dktapps
Copy link
Contributor

dktapps commented Aug 21, 2020

Bug report

I don't really know how to explain this, so I hope the code samples are sufficient...

Code snippet that reproduces the problem

With treatPhpDocTypesAsCertain: false: https://phpstan.org/r/0b970edc-56b4-4aa3-8d8a-d506d04aa484
With treatPhpDocTypesAsCertain: true: https://phpstan.org/r/959f59d6-7032-4782-a353-aebfb95d0b4b

Expected output

The first test case should report zero errors.

@dktapps
Copy link
Contributor Author

dktapps commented Aug 28, 2020

This bug seems to have appeared some time after 0.12.37.

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@64da8f9

@github-actions
Copy link

github-actions bot commented May 7, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants