Major changes 🎉
- Much easier setup. Just include
vendor/shipmonk/phpstan-rules/rules.neon
in your codebase; no need to register all rules, visitors and tags as before (#44)
- Also, you can easily enable/disable rules one by one like this:
includes:
- vendor/shipmonk/phpstan-rules/rules.neon
parameters:
shipmonkRules:
allowNamedArgumentOnlyInAttributes:
enabled: false
New features
Improvements
ForbidFetchOnMixedRule
and ForbidMethodCallOnMixedRule
does not make sense on level9, so it gets autodisabled in that case (#38)
Error message changes
ForbidAssignmentNotMatchingVarDocRule
now reports type narrowing with different message (#45)