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
Bug report
As you can see in the repro,
@phpstan-ignore-linecomment 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