Type Safe PHP: Leveraging Static Analysis for Robust Code

static analysis phpstan psalm types conference talk

Abstract

Type hints and type declarations in PHP add clarity, reduce bugs, and enable safe refactoring - cornerstones of maintainable and reliable code. While PHP's type system improves with every release, it still has limitations.

In this talk, we'll explore how far PHP's type system can go and uncover strategies for leveraging its full potential. Next, we'll dive into the world of static analysis, discovering how tools like PHPStan or Psalm can bridge the gaps in PHP's type system, providing insights and safeguards that native types can't.

By the end of this session, you'll have the tools and knowledge to make your PHP code more robust, reliable, and future-proof. Whether you're maintaining legacy code or building a new application, this talk will help you harness the power of types to elevate your development practices.


See more talks.

Events
php[tek] 2026 May 2026

[website]