Skip to content

Releases: slevomat/coding-standard

8.13.3

24 Jul 15:30
8.13.3
daa7ae4

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed internal error for invalid doccomment

8.13.2

24 Jul 10:22
8.13.2

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed false positives
  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed false positives
  • SlevomatCodingStandard.ControlStructures.JumpStatementsSpacing: Fix TypeError when return is on the first line of the file (thanks to @herndlm)

8.13.1

25 Jun 12:58
8.13.1
a13c15e

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed fixer
  • SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed false positive
  • Don't parse invalid doccomments

8.13.0

23 Jun 09:57
8.13.0
4166003

Choose a tag to compare

🔧 Improvements

  • Refactored documentation comments parsing

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: callable is not valid type for property promotion

8.12.1

15 May 21:50
8.12.1
f69e252

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixed false positive

8.12.0

14 May 20:37
8.12.0
cc04334

Choose a tag to compare

🆕 New sniffs

  • SlevomatCodingStandard.Arrays.ArrayAccess: Disallow whitespace between array access operator and the variable, or between array access operators (thanks to @kamil-zacek)

🐛 Fixes

  • SlevomatCodingStandard.Classes.ClassStructure: Fixed fixer
  • SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator: Fixed false positive
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixes
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive

8.11.1

24 Apr 08:30
8.11.1
af87461

Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Commenting.AnnotationName: Fixed false positive
  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Fixed false positive

8.11.0

21 Apr 16:11
8.11.0
91428d5

Choose a tag to compare

🆕 New sniffs

  • SlevomatCodingStandard.Commenting.AnnotationName: Checks incorrect annotation names

🔧 Improvements

  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses: Don't fix when multiple uses are in one statement (thanks to @jonathan1055)
  • Support for phpstan/phpdoc-parser 1.20

🐛 Fixes

  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Fixed false positive
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive with array unpacking

8.10.0

10 Apr 08:22
8.10.0

Choose a tag to compare

🆕 New sniffs

  • SlevomatCodingStandard.Classes.DisallowStringExpressionPropertyFetch: Disallows string expression property fetch $object->{'foo'}
  • SlevomatCodingStandard.Strings.DisallowVariableParsing: Disallows variable parsing inside strings (thanks to @Ekimik)
  • SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Disallows partially keyed arrays (thanks to @bkdotcom)

🔧 Improvements

  • Object shapes support
  • Improved support for arrays in array() style (thanks to @bkdotcom)
  • Support for phpstan/phpdoc-parser 1.18

8.9.2

05 Apr 06:32
8.9.2
c9b3906

Choose a tag to compare

🔧 Improvements

  • Support for phpstan/phpdoc-parser 1.17

🐛 Fixes

  • SlevomatCodingStandard.Classes.ParentCallSpacing: Fixed false positives with parent call used in match()