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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions