solido/phpstan-rules
Custom PHPStan ruleset for Solido-based projects. Adds extra static analysis for enhanced DTOs with simple phpstan.neon config to declare DTO namespaces and excluded interfaces, helping catch type and structure issues across your application.
This package contains the custom rules to be used in solido-based projects.
When using enhanced DTOs, PHPStan should be configured with DTO namespaces:
# phpstan.neon
parameters:
solido:
dto_namespaces:
- My\Application\DTO
- App\Models
excluded_interfaces:
- My\Application\DTO\NonDTOInterface
How can I help you explore Laravel packages today?