Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
8.14.0
🆕 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 optionignoredAnnotationNames(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 positivesSlevomatCodingStandard.Classes.ConstantSpacing: Fixed internal errorSlevomatCodingStandard.Commenting.InlineDocCommentDeclaration: Fixed false positive for final constantSlevomatCodingStandard.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)
8.13.4
8.13.3
8.13.2
🐛 Fixes
SlevomatCodingStandard.Commenting.UselessFunctionDocComment: Fixed false positivesSlevomatCodingStandard.Commenting.DocCommentSpacing: Fixed false positivesSlevomatCodingStandard.ControlStructures.JumpStatementsSpacing: Fix TypeError when return is on the first line of the file (thanks to @herndlm)
8.13.1
8.13.0
8.12.1
8.12.0
🆕 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 fixerSlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator: Fixed false positiveSlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly: FixesSlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive
8.11.1
8.11.0
🆕 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-parser1.20
🐛 Fixes
SlevomatCodingStandard.Strings.DisallowVariableParsing: Fixed false positiveSlevomatCodingStandard.Arrays.DisallowPartiallyKeyed: Fixed false positive with array unpacking