Skip to content

2.0.0

Compare
Choose a tag to compare
@janedbal janedbal released this 15 Nov 13:14
· 198 commits to master since this release
3a3f8b1

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)