Skip to content

Error on assignment of new generic subclass instance #8219

@ondrejmirtes

Description

@ondrejmirtes

Bug report

Discussed in #8218

Originally posted by butesa October 26, 2022
Hello,

https://phpstan.org/r/39ec7180-b0c9-4691-b83d-19e3bbf999e3

why is there an error on line 53 (new B), but no error on line 52 (new A)?

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions