Skip to content

4.0.0

Compare
Choose a tag to compare
@kukulich kukulich released this 15 Sep 18:30
· 1833 commits to master since this release

⚠️ Using all sniffs from the standard is no longer a recommended way to use Slevomat Coding Standard, see How to run the sniffs.

BC breaks:

  • YodaComparisonSniff was renamed to DisallowYodaComparisonSniff

New sniffs:

  • RequireYodaComparisonSniff: If you prefer Yoda conditions, you can disable DisallowYodaComparison and use this sniff

Improvements:

  • Basic support of object type hint

Fixes:

  • TypeHintDeclarationSniff: {@ignoredoc} is case insensitive now
  • UnusedPrivateElementsSniff: Chained private methods should not be reported as unused
  • ReferencedNameHelper: Some references were not recognized