Menu
Error Identifier: ignore.noComment
Every error reported by PHPStan has an error identifier. Here’s a list of all error identifiers. In PHPStan Pro you can see the error identifier next to each error and filter errors by their identifiers.
Error identifiers like ignore.noComment in PHPStan can be used to ignore errors locally using a comment:
// @phpstan-ignore ignore.noComment
codeThatProducesTheError();
You can also use only the identifier key to ignore all errors of the same type in your configuration file in the ignoreErrors parameter:
parameters:
ignoreErrors:
-
identifier: ignore.noComment
Rules that report this error #
- PHPStan\Analyser\FileAnalyser [1]