Skip to content

Misleading No error to ignore is reported on line x message when using traits #4513

@tarlepp

Description

@tarlepp

Bug report

See that example for detailed information. I noticed this behaviour after I updated phpstan from 0.12.71 to 0.12.74.

Also this is a bug that I can't reproduce on phpstan.org, because we cannot add multiple files there.

Code snippet that reproduces the problem

I created simple repository to demonstrate this https://github.com/tarlepp/phpstan-trait-bug

Expected output

Error should point to the correct file / line.

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