Skip to content

False positive "Access to private property $field of parent class A." #3572

@sunkan

Description

@sunkan

Bug report

I mostly want to know if this is the intended behavior for this warning or if this is a bug.

The reason I think it's a bug is because there is now warning or notice from php it self

Code snippet that reproduces the problem

https://phpstan.org/r/0db2cb6e-df24-4cbe-85ec-a85edc7d5c71

Expected output

No error should be reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions