Menu
Error Identifier: staticMethod.notFound
Error identifiers like staticMethod.notFound in PHPStan can be used to ignore errors locally using a comment:
// @phpstan-ignore staticMethod.notFound
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: staticMethod.notFound
You can see what identifiers are attached to reported errors by running PHPStan with -v and using the table error formatter. Here’s a list of all error identifiers.
You can also see error identifiers while browsing errors in PHPStan Pro.
This identifier is reported by these rules: