Skip to content

Method call phpstan error is reported on wrong line #9820

@mvorisek

Description

@mvorisek

Bug report

This is a problem with many chained method calls when some specific method call needs @phpstan-ignore-line comment.

Code snippet that reproduces the problem

https://phpstan.org/r/77cd88d2-681c-43fb-9e2b-f37a829a644f

Expected output

error reported on a specific line (l16 and l23 in repro)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions