Skip to content

"Cannot use xxx as xxx because the name is already in use on line dd" reports wrong line #10358

@mvorisek

Description

@mvorisek

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/11e0c7af-bd52-4add-8de0-98397c5d492e

Expected output

-Cannot use Ns\Foo2 as Foo because the name is already in use on line 6
+Cannot use Ns\Foo2 as Foo because the name is already in use on line 5

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