PHP Static Analysis Tool - discover bugs in your code without running it!
PHP Static Analysis Tool - discover bugs in your code without running it!
------ PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line. **[Read more about PHPStan »](https://phpstan.org/)** **[Try out PHPStan on the on-line playground! »](https://phpstan.org/try)** ## Sponsors Want your logo here? [Learn more »](https://phpstan.org/sponsor) ### Gold Sponsors
Dependency Dashboard
symfony/ux-css slow on big array shape
Provide refined type for the int range returned by intdiv
Generated baseline doesn't match errors whose message starts with @ (since 2.2.6)
Generics cannot be combined with value-of
turbo: inline property fetches to local variabes
Reports wrong line number
Docblock emitting error that source code wouldn't
PHPStan `param-closure-this` reassigns `self` (regression)
2.3.x-dev: internal error "The initial type of an unresolved template argument is never itself unresolved" (unresolvedTemplateArguments)