Skip to content

Wrong self class after calling a parent method with phpstan-self-out #8316

@mtorromeo

Description

@mtorromeo

Bug Report

@phpstan-self-out does not seem consider class inheritance. This does result in child classes being "downcast" to their parent classes.

Code snippet that reproduces the problem

https://phpstan.org/r/a73f81f4-da4a-41af-97ef-893bce85339a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions