Skip to content

Releases: shipmonk-rnd/phpstan-rules

2.0.1

02 Dec 15:48
01f9cd9
Compare
Choose a tag to compare

Fixes:

  • uselessPrivatePropertyNullability: fix false positive within promoted properties (#55, thx @enumag)

2.0.0

15 Nov 13:14
3a3f8b1
Compare
Choose a tag to compare

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)

1.2.0

10 Oct 09:49
efd369f
Compare
Choose a tag to compare

New features

1.1.1

20 Aug 10:11
1053dae
Compare
Choose a tag to compare

Fixes

  • Fixed duplicate registration of ForbidUnsetClassFieldRule in deprecated rules.neon (#25)

1.1.0

17 Aug 13:03
140bcab
Compare
Choose a tag to compare

New features:

Dependencies

  • phpstan/phpstan now requires at least 1.8.1 (was 1.5.6, see #15)

1.0.1

24 Jun 08:15
c99892c
Compare
Choose a tag to compare

Fixes:

  • Use reliable static reflection concepts, no is_a inside rules (#10)
    • Checked since phpstan 1.7.15, needed since phpstan onboarded fully static reflection (1.7.0)

1.0.0

24 Jun 08:12
eee2284
Compare
Choose a tag to compare

Initial release

  • First 11 rules open-sourced, see readme