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

Do not drop original specified expression in TypeSpecifier #1793

Merged
merged 2 commits into from Oct 4, 2022

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Oct 4, 2022

Closes phpstan/phpstan#8076

Overwriting $expr and dropping the type specification for the original expression would otherwise lead to false-positives via ImpossibleCheckTypeHelper

@herndlm herndlm changed the base branch from 1.9.x to 1.8.x October 4, 2022 16:03
@herndlm herndlm force-pushed the type-specifier-original-expr branch from 8acb8a2 to 79a3de0 Compare October 4, 2022 16:03
src/Analyser/TypeSpecifier.php Outdated Show resolved Hide resolved
@herndlm herndlm marked this pull request as ready for review October 4, 2022 16:40
@ondrejmirtes ondrejmirtes merged commit a2332f5 into phpstan:1.8.x Oct 4, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants