Skip to content

Instanceof on $this in traits should not report always false #10353

@InvisibleSmiley

Description

@InvisibleSmiley

Bug report

See #3632

Declared fixed (and mentioned as such in the 1.10.46 release notes) but the snippet still produces the same/similar error as when the issue was created.

Would comment over there but it's no longer possible (locked).

Code snippet that reproduces the problem

https://phpstan.org/r/27ab1228-4e19-423a-a440-ed26982ac171

Expected output

None

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions