Strict Casts PHPStan Rule Ensure you're using strict casts wherever possible Installation $ composer require ntzm/strict-casts-phpstan In your PHPStan config, add: includes: - vendor/ntzm/strict-casts-phpstan/rules.neon