Skip to content

Releases: slevomat/coding-standard

6.3.9

16 Jun 07:29
6.3.9
dd73c0f
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • DisallowCommentAfterCodeSniff: Fixed false positive
  • Fix error message typos in NumericLiteralSeparator sniffs (thanks to @finwe)
  • UnusedVariableSniff: Fixed false positives
  • EarlyExitSniff: Fixed fixer for conditions with ?: and ??

6.3.8

27 May 06:31
6.3.8
500f55b
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • Fixed detection of some referenced names

6.3.7

25 May 13:42
6.3.7
1f7bd4b
Compare
Choose a tag to compare

6.3.6

22 May 15:16
6.3.6
7876032
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • UseSpacingSniff: Fixed internal errors
  • FullyQualifiedClassNameInAnnotationSniff: Fixed false positive
  • UnusedPrivateElementsSniff: Fixed missing reports for write-only properties with FQN native typehints

6.3.5

13 May 15:05
6.3.5
2999540
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • EarlyExitSniff: yield does not do early exit
  • EarlyExitSniff: Fixed false positive
  • BlockControlStructureSpacingSniff: Fixed false positives
  • JumpStatementsSpacingSniff: Improved fixer
  • RequireTernaryOperatorSniff: Fixer should not remove comments

6.3.4

12 May 14:23
6.3.4
51d4580
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • EarlyExitSniff: Fixed internal error
  • BlockControlStructureSpacingSniff: Fixed false positive
  • UselessFunctionDocCommentSniff: Fixed internal error
  • Fixed parsing really strange WordPress documentation
  • TypeNameMatchesFileNameSniff: Exclude provided base path (thanks to @rmikalkenas)

6.3.3

28 Apr 07:29
6.3.3
b905a82
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Improvements

  • ClassMemberSpacingSniff: Improved for invalid comments
  • UselessVariableSniff: Improved fixer

Fixes

  • StrictCallSniff: Fixed false positive

6.3.2

20 Apr 12:37
6.3.2
6de1e23
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • Hotfix for autoload, broken in #969

6.3.1

20 Apr 11:04
6.3.1
e4f74a9
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

Fixes

  • ClassStructureSniff: Fixed internal error
  • ClassMemberSpacingSniff: Fixed false positive
  • StaticClosureSniff: Workaround for bug in PHPCS

6.3.0

20 Apr 08:29
6.3.0
d7a4988
Compare
Choose a tag to compare

📣 You can now sponsor Slevomat Coding Standard development

New sniffs

  • ClassMemberSpacingSniff: Checks lines count between different class members, eg. between last property and first method
  • StrictCallSniff: Some functions have $strict parameter. This sniff reports calls to these functions without the parameter or with $strict = false
  • ForbiddenClassesSniff: Reports usage of forbidden classes, interfaces, parent classes and traits (thanks to @arxeiss)

Improvements

  • Support for parsing and checking @template etc annotations
  • Support for more prefixed annotations (@psalm- or @phpstan- prefixes)
  • EarlyExitSniff: New option ignoreTrailingIfWithOneInstruction
  • AssignmentInConditionSniff: New option ignoreAssignmentsInsideFunctionCalls (thanks to @nightlinus)
  • DuplicateSpacesSniff: New option ignoreSpacesInComment
  • LineLengthSniff: Speedup (thanks to @nightlinus)

Fixes

  • FullyQualifiedClassNameInAnnotationSniff: Does not report @template
  • ParentCallSpacingSniff: Fixed false positive
  • ReturnTypeHintSniff: Fixed false positive
  • ParameterTypeHintSniff: Fixed false positive
  • PropertyTypeHintSniff: Fixed false positive
  • MethodSpacingSniff: Fixed false positive
  • EarlyExitSniff: Fixed missing report
  • ConstantSpacingSniff: Fixed internal error