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

Generic type can't be inferred from nullable properties #6834

Closed
marcospassos opened this issue Mar 15, 2022 · 2 comments
Closed

Generic type can't be inferred from nullable properties #6834

marcospassos opened this issue Mar 15, 2022 · 2 comments

Comments

@marcospassos
Copy link

Bug report

Generic types aren't correctly inferred from class instantiation when setting properties.

Code snippet that reproduces the problem

https://phpstan.org/r/14c618ba-7816-4ba9-8e0d-52248486647c

Expected output

No errors.

@ondrejmirtes
Copy link
Member

Duplicate of #4526

@ondrejmirtes ondrejmirtes marked this as a duplicate of #4526 Mar 15, 2022
@github-actions
Copy link

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 Apr 16, 2022
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