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

Nullable generics bug #5677

Closed
jrmajor opened this issue Sep 22, 2021 · 3 comments
Closed

Nullable generics bug #5677

jrmajor opened this issue Sep 22, 2021 · 3 comments

Comments

@jrmajor
Copy link

jrmajor commented Sep 22, 2021

Bug report

PHPStan reports that property of type (TValue of int|string)|null does not accept (TValue of int|string)|null, which is the same type.

Code snippet that reproduces the problem

https://phpstan.org/r/0391a032-1553-47a8-88ad-c0f528d8dd3d

Expected output

PHPStan should report no errors.

Did PHPStan help you today? Did it make you happy in any way?

Thank you for this tool! It helps me do my work better every day.

@ondrejmirtes
Copy link
Member

Thank you for your kind words! :) This is a duplicate of #5591 so please subscribe to that issue.

@jrmajor
Copy link
Author

jrmajor commented Sep 22, 2021

@ondrejmirtes Thank you for a quick response! Sorry for opening a duplicate, I couldn't find this issue.

@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 Oct 24, 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