Skip to content

gettype: Param-Type specification interferes with root-expression types #9404

@staabm

Description

@staabm

Bug report

As discussed in phpstan/phpstan-src#2437 (comment)

Code snippet that reproduces the problem

https://phpstan.org/r/d00e29f6-3163-414b-b83d-f591fd1eaf7d

Expected output

no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions