Skip Navigation

How adding Type Declarations makes Your Code Dangerous

tomasvotruba.com How adding Type Declarations makes Your Code Dangerous

...and how to avoid it. [Type coverage](/blog/how-to-measure-your-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 %. <br><br> Once we reach high coverage ...

How adding Type Declarations makes Your Code Dangerous

...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.

0
0 comments