github slevomat/coding-standard 8.14.0

latest releases: 8.15.0, 8.14.1
6 months ago

🆕 New sniffs

  • SlevomatCodingStandard.Functions.NamedArgumentSpacing: Checks spacing in named argument (thanks to @mzk)

🔧 Improvements

  • SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses: If the file contains a group use then ignore the file completely (thanks to @jonathan1055)
  • SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation: New option ignoredAnnotationNames (thanks to @gemal)

🐛 Fixes

  • SlevomatCodingStandard.ControlStructures.AssignmentInCondition: Prevent error during live coding (thanks to @jrfnl)
  • SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition: Prevent error during live coding (thanks to @jrfnl)
  • SlevomatCodingStandard.PHP.UselessParentheses: Prevent error during live coding (thanks to @jrfnl)
  • SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation: Recognize global statements (thanks to @jrfnl)
  • SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants: Don't treat a group use as a constant (thanks to @asispts)
  • SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: Fixed false positives
  • SlevomatCodingStandard.Classes.ConstantSpacing: Fixed internal error
  • SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positive for final constant
  • SlevomatCodingStandard.Namespaces.UnusedUses: Ignores uses in annotations with multi lines string arguments (thanks to @mathroc)
  • NamespaceHelper::getAllNamespacesPointers(): Allow for namespace tokens used as operator (thanks to @jrfnl)

Don't miss a new coding-standard release

NewReleases is sending notifications on new releases.