LTT
Laravel Top Tens
Back to Authors
Caleb White
1 featured link
Featured Links
9

Rector introduces a new SafeDeclareStrictTypesRector rule that safely adds PHP's strict_types declaration to files that are already type-safe, enabling progressive adoption without breaking existing code. This automated approach solves the common problem of manually adding strict types one file at a time while preventing future regressions.