rector/type-perfect
Type Perfect adds 10 PHPStan rules to tighten type declarations: replace empty/isset checks with instanceof for precise narrowing, prefer explicit getters over magic array access, and enforce interface signatures. Easy to enable even on legacy code; improves reliability fast.
Adopt when your project uses PHPStan and has loose type declarations (e.g., mixed, null/false
How can I help you explore Laravel packages today?