Skip to content

Child class' properties incorrectly inspected against parent class. #3998

@paulbalandan

Description

@paulbalandan

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/48108e72-9689-4291-b032-96e31da4c2d9

Up until 0.12.50, this code works as PHPStan correctly resolves the properties to the child class. However, this update seems to inspect the property against the parent class.

Expected output

No errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions