Level up your PHPStan (Lightning talk)

Track: Drupal Development

Unlock the full potential of PHPStan, the leading static analysis tool for PHP, and elevate your Drupal projects to new heights. This session dives deep into effectively using PHPStan within Drupal to enhance code quality, reduce technical debt, and foster seamless team collaboration.

PHPStan’s higher levels of analysis can be challenging to achieve, especially within Drupal’s unique ecosystem. This presentation will guide you through leveraging PHP design patterns to overcome common hurdles, including:
- Addressing "Unsafe Usage of New Static": Best practices for avoiding this frequent issue in
- Implementing Dependency Injection: Learn how to replace static calls to the \Drupal class with robust and testable solutions.

By the end of this session, you’ll have practical strategies to tackle common PHPStan challenges in Drupal, ensuring cleaner, more maintainable code for your projects.

Speakers

Luhur Abdi Rizal
I'm a Drupal developer from Indonesia, currently working at PreviousNext. I've worked with Drupal professionally for 10 years. A husband, and a father of two. Loves football, music, and astrophotography.