Skip to content

Releases: shipmonk-rnd/phpstan-rules

4.3.3

18 Dec 15:59
77dfe38

Choose a tag to compare

Fixes:

4.3.2

09 Dec 14:45
fa4054b

Choose a tag to compare

Fixes:

  • enforceReadonlyPublicProperty: skip untyped props + add excludePropertyWithDefaultValue option (#334, @devfrey)

4.3.1

08 Dec 14:04
791c9e8

Choose a tag to compare

Fixes:

enforceReadonlyPublicProperty: skip static properties (#333, @devfrey)

4.3.0

01 Dec 12:32
d8ef02e

Choose a tag to compare

Improvements:

  • enforceReadonlyPublicProperty support asymmetric visibility (#331, @JanTvrdik)
  • forbidArithmeticOperationOnNonNumber add support for BcMath\Number (#321, @JokubasR)

Fixes:

  • enforceNativeReturnTypehint fix false positive for unions with template type (#325, @mspirkov)
  • forbidPhpDocNullabilityMismatchWithNativeTypehint: ignore void methods (#328, @mspirkov)

Dependencies:

  • phpstan/phpstan now requires ^2.1.32 (#331)

4.2.1

04 Sep 08:07
2c3a585

Choose a tag to compare

Fixes:

  • forbidUselessNullableReturn: no error for overridable methods (#314 by @vrana)

4.2.0

27 Aug 09:30
5ad702b

Choose a tag to compare

New features:

  • forbidUnusedClosureParameters: report unused trailing params for closures and array functions (#313)

4.1.5

17 Jul 11:44
9a2a033

Choose a tag to compare

Fixes:

  • enforceNativeReturnTypehint: fix property hook false positive (#309)

4.1.4

28 May 14:54
69059a5

Choose a tag to compare

Fixes:

  • forbidUnusedMatchResult: fix false positive for usage in arrow function (#305, @maryo)

4.1.3

21 May 11:13
879bcdc

Choose a tag to compare

Fixes:

  • enforceReadonlyPublicProperty: fix false positive with hooked properties (#303)

4.1.2

07 May 07:48
7517d6e

Choose a tag to compare

Fixes:

  • forbidUnusedException: fix ->getException()::class false positive (#299)