Tighten up your Drupal code using PHPStan

Session Category Development & Performance Room 182 Audience Beginner Time Slot Sat 1:00pm to 1:45pm (2/24/24)

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.


Youtube Video

About the Speaker

Matt Glaman

Principal Software Engineer at Acquia

Kenosha, WI

Matt Glaman is an experienced software engineer and a prominent member of the Drupal community. With over a decade of experience in web development, he has gained a wealth of knowledge and expertise in the field. He is the author of several books, including "Drupal 8 Development Cookbook" and "Drupal 10 Development Cookbook," which provide a comprehensive guide to building and customizing Drupal sites.

As an active member of the Drupal community, Matt is dedicated to sharing his knowledge and expertise with others. He regularly contributes to Drupal projects and is passionate about helping others develop their skills and become more proficient in Drupal development.

Florida DrupalCamp 2025

Save the date! Florida DrupalCamp 2025 will be in person February 21-23 in Orlando College at the Florida Technical College. 3 days of training, sessions, contributions and social events.

Sign up for our mailing list