Skip to content

Assigning generic objects without constructor to nullable properties reports false positives #4526

@dktapps

Description

@dktapps

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/708c1e20-8078-42f0-b18a-d22aaf41ea21

Expected output

No error should be reported.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions