Sitelet https://github.com/phpstan/phpstan/issues/9022
Skip to content

1.10.6 release has broken ignore comments in traits #9022

Description

@mvorisek

Bug report

As you can see in the repro, @phpstan-ignore-line comment is not ignoring the error on the same line. Only traits are affected, in class, exactly the same method does not emit an error.

In 1.10.5 it worked fine.

Code snippet that reproduces the problem

https://phpstan.org/r/77051602-628e-4970-88b4-c8f267201db7

Expected output

no error

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

    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