Writing Strongly Typed PHP: Let Types Do the Testing

PHP has come a long way. Readonly properties, enums, property hooks, and a mature static analysis ecosystem now let us say much more about our code in types than before. A machine can check all of it for free, before a single test runs.
In this talk, I'll show how leaning on the type system can quietly remove whole groups of bugs — bugs developers still write unit tests for today. We'll look at small, everyday habits that make code easier to read, both for humans and for tools like PHPStan. Then we'll step back and ask a bigger question. Which parts of your application really need tests? And which parts can a static analyser guard for you instead? 
You'll leave with a fresh way to think about where bugs hide, and a simple plan to write fewer tests while shipping more reliable PHP.

  • Neos Conference 2026
  • 02.06.2026
  • 11:00
  • Center Stage