Skip to content

Releases: slevomat/coding-standard

8.6.3

10 Nov 15:26
8.6.3
94fd4f9
Compare
Choose a tag to compare

🐛 Fixes

  • Slevomat.Namespaces.ReferenceUsedNamesOnly: Fixed fixer when there's conflict with Slevomat.Namespaces.UnusedUses
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positives for int<0, max> and int<min, 100>
  • SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing: Fixed false positive for comment after attribute

8.6.2

22 Oct 15:47
8.6.2
080f592
Compare
Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positive with self::CONSTANT

8.6.1

21 Oct 16:18
8.6.1
71dddfe
Compare
Choose a tag to compare

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.12.0

🐛 Fixes

  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: Fixed false positives for global constants
  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positives for constants

8.6.0

17 Oct 07:09
8.6.0
d4175d8
Compare
Choose a tag to compare

🆕 New sniffs

  • Added SlevomatCodingStandard.Attributes.AttributesOrder
  • Added SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing
  • Added SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine
  • Added SlevomatCodingStandard.Attributes.DisallowAttributesJoining (thanks to @michnovka)
  • Added SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.11.0
  • Support for @phpstan-self-out/@phpstan-this-out
  • Support for @param-out annotation`
  • Support for @template with default value
  • Add dev Composer keyword (thanks to @GaryJones)

🐛 Fixes

  • Improved detection of references in double quotes strings

8.5.2

27 Sep 16:49
8.5.2
f32937d
Compare
Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.TypeHints.PropertyTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled
  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled
  • SlevomatCodingStandard.TypeHints.ReturnTypeHint: Fixed false positives when enableUnionTypeHint is disabled and enableIntersectionTypeHint is enabled

8.5.1

23 Sep 05:38
8.5.1
971f489
Compare
Choose a tag to compare

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed broken fixer when enableAdvancedStringTypes is enabled

8.5.0

21 Sep 12:54
8.5.0
a52720f
Compare
Choose a tag to compare

🔧 Improvements

  • PHP 8.2: Support for standalone null, true and false type hints
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Improved support for native simple types
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: New option enableIntegerRanges
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: New option enableAdvancedStringTypes
  • Support of phpstan/phpdoc-parser 1.8.0

🐛 Fixes

  • SlevomatCodingStandard.Classes.PropertyDeclaration: Fixed false positive
  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Fixed false positive
  • SlevomatCodingStandard.ControlStructures.DisallowYodaComparison/RequireYodaComparison: Fixed support for condition in arrow function
  • SlevomatCodingStandard.Classes.DisallowMultiPropertyDefinition: Fixed false positives for old array definition style
  • SlevomatCodingStandard.Variables.UselessVariable: Fixed false positives

8.4.0

09 Aug 19:14
8.4.0
02f2732
Compare
Choose a tag to compare

🔧 Improvements

  • Support of phpstan/phpdoc-parser 1.7.0

🐛 Fixes

  • Fixed detection of some PHP 8.1 types
  • SlevomatCodingStandard.PHP.RequireNowdoc: Accepts escaped sequences (thanks to @dg)
  • SlevomatCodingStandard.Functions.RequireSingleLineCall: Skip calls with multi-line double-quoted string (thanks to @schlndh)
  • SlevomatCodingStandard.PHP.UselessParentheses: Fixed false positive with xor
  • SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator: Try to ignore string offsets

8.3.0

16 Jul 12:05
8.3.0
a14df43
Compare
Choose a tag to compare

🆕 New sniffs

  • Added SlevomatCodingStandard.Complexity.Cognitive (thanks to @bkdotcom)
  • Added SlevomatCodingStandard.Files.FileLength (thanks to @bkdotcom)
  • Added SlevomatCodingStandard.Classes.ClassLength (thanks to @bkdotcom)

🐛 Fixes

  • SlevomatCodingStandard.PHP.RequireExplicitAssertion: Do not throw away static type (thanks to @simPod)

8.2.0

08 Jul 10:55
8.2.0
0cec515
Compare
Choose a tag to compare

🆕 New sniffs

  • Added SlevomatCodingStandard.Classes.BackedEnumTypeSpacing

🔧 Improvements

  • SlevomatCodingStandard.TypeHints.ParameterTypeHint: MissingTraversableTypeHintSpecification is not reported when promoted property has @var annotation