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.
|
Package
|
Constraint
|
|---|---|
| phpstan/phpstan | ^2.1.30 |
| webmozart/assert | ^1.11 || ^2.1 |
|
Package
|
Constraint
|
|---|---|
| nikic/php-parser | ^5.6 |
| phpstan/extension-installer | ^1.4 |
| phpunit/phpunit | ^11.5|^12.2 |
| rector/rector | ^2.2 |
| symplify/easy-coding-standard | ^12.6 |
| symplify/phpstan-extensions | ^12.0 |
| tomasvotruba/class-leak | ^2.0 |
| tracy/tracy | ^2.10 |
How can I help you explore Laravel packages today?