Skip to content

Allow $this->xxx to be used as a condition in conditional return type #7545

Description

@mvorisek

Feature request

demo: https://phpstan.org/r/9115f230-60a1-4b19-9778-e52848968cfd

expected output: Dumped type: array<string, mixed>

assertions like presented in the demo are used in many projects and this feature request can thus highly improve the code analysis

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions