Skip to content

Closure::bind does not rebind type correctly #7640

@mvorisek

Description

@mvorisek

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/8d8f8b00-4a24-4d0a-9ed8-e2ec609089fe

the errored line 44 does operate on P class only (as rebound by Closure::bind) and not on "parent class P"

Expected output

no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions