PHPStan
Body
PHPStan is a static analysis tool that allows you to find bugs in your codebase without running the code. The phpstan-drupal extension for PHPStan makes it possible to perform static analysis of Drupal code.
Getting started
Installing PHPStan and related extensions
Fixing reports of undefined methods
Is PHPStan reporting a method as missing when you know it exists?
Handling "Unsafe usage of new static()"
How to handle the error of "Unsafe usage of new static()"
PHPStan in Drupal core
Specific information about how PHPStan is used in Drupal core, for example with its baseline.
Knowledge Category