Did you know Drupal core and now contributed modules (using GitLab CI) are being analyzed using PHPStan to catch bugs and improve code quality?
Learn how PHPStan, a static analysis tool for PHP, can find bugs in your code that your tests and code review cannot. In this session, we will learn how to use PHPStan with the phpstan-drupal extension to perform static analysis of a Drupal codebase. The session will cover the intricacies of analyzing a codebase like Drupal's, which can have dynamic return types. And, we will explain how contributed modules can onboard to GitLab CI and how the GitLab CI templates run PHPStan.