Menu

Error Identifier: phpstan.php

← Back to phpstan.*

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.

Code example #

This error wraps native PHP errors (warnings, notices, deprecations) that occur during analysis.

Why is it reported? #

A PHP warning, notice, or deprecation was triggered while PHPStan was analysing the code. This happens when PHP itself encounters an issue during the analysis phase. The error message includes the PHP error level (e.g., Warning, Notice, Deprecated) followed by the error text.

How to fix it #

Fix the underlying PHP issue that causes the warning, notice, or deprecation. The error message from PHP itself describes what went wrong.

Non-ignorable error #

This error cannot be ignored using @phpstan-ignore or the ignoreErrors configuration. Non-ignorable errors indicate code that would cause a crash or a fatal error at runtime, or a fundamental problem in the analysed code that must be addressed.

Rules that report this error #

  • PHPStan\Analyser\FileAnalyser [1] [2]
Theme
A
© 2026 PHPStan s.r.o.