Skip to content

Assigning generic objects without constructor via null coalesce assign reports false positives #4525

@dktapps

Description

@dktapps

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/124786fa-fdac-4968-9647-0e04bb61f216

Expected output

No errors should be reported (well, maybe one for null coalesce on non-nullable property? it's just a test sample ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions