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

FP of generic inference when constructing an empty set datastructure and assigning with ??= #10924

Open
dktapps opened this issue Apr 23, 2024 · 0 comments
Labels
Milestone

Comments

@dktapps
Copy link
Contributor

dktapps commented Apr 23, 2024

Bug report

I feel like you've probably seen this issue before. I'm not sure if it's a dupe, since I don't really know exactly how to describe it.

Essentially, since the ObjectSet in the example is constructed with no objects, it should be accepted by the static properties.

Code snippet that reproduces the problem

https://phpstan.org/r/21435f46-c3f4-47ce-893b-5f00fdac6e50

Expected output

No errors

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

No response

@ondrejmirtes ondrejmirtes added this to the Generics milestone Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants