How adding Type Declarations makes Your Code Dangerous

June 14, 2024
...and how to avoid it.

Type coverage is a way to gradually add type declarations to your PHP project—step by step, one by one. It's a PHPStan package that helps you maintain a specific minimal level from 0 % to 100 %.

Once we reach high coverage of 80-90 %, we feel safer. But our code can actually be in worse, even dangerous, shape.

Read full article on tomasvotruba.com.