phpstan / phpstan

PHP Static Analysis Tool - discover bugs in your code without running it!
https://phpstan.org/
MIT License
12.72k stars 861 forks source link

Documentation incorrectly suggests one can ignore `ignore.parseError` #11174

Open SamMousa opened 1 month ago

SamMousa commented 1 month ago

Bug report

If you go to the documentation here: https://phpstan.org/error-identifiers/phpstan.parse

The configuration sample (which I believe to be auto generated) does not actually work.

Code snippet that reproduces the problem

https://phpstan.org/r/a8c88338-4483-4a00-99a5-fca51ae8306f

Expected output

The output is fine, it's the docs that are wrong.

Did PHPStan help you today? Did it make you happy in any way?

It helps every day!

ondrejmirtes commented 1 month ago

Yes, right now these pages for identifiers all look the same, and some errors cannot be ignored although the documentation suggests so.