Releases: slevomat/coding-standard
Releases · slevomat/coding-standard
4.1.0
Improvements:
FullyQualifiedExceptionsSniff: Sniff is now fixable (thanks to @VasekPurchart)FullyQualifiedClassNameAfterKeywordSniff: Sniff is now fixable (thanks to @VasekPurchart)FullyQualifiedClassNameInAnnotationSniff: Sniff is now fixable (thanks to @VasekPurchart)
Fixes:
UnusedPrivateElementsSniff: Check for unused private methods is case insensitive nowTypeHintDeclarationSniff: Fixed useless doccomment detection when parameters are alignedAnnotationHelper: Fixed parsing of multiline annotations
4.0.0
BC breaks:
YodaComparisonSniffwas renamed toDisallowYodaComparisonSniff
New sniffs:
RequireYodaComparisonSniff: If you prefer Yoda conditions, you can disableDisallowYodaComparisonand use this sniff
Improvements:
- Basic support of
objecttype hint
Fixes:
TypeHintDeclarationSniff:{@ignoredoc}is case insensitive nowUnusedPrivateElementsSniff: Chained private methods should not be reported as unusedReferencedNameHelper: Some references were not recognized
2.5.0
New checks:
TypeHintDeclarationSniff: Checks if closures usevoidtype hint.
New settings:
ReferenceUsedNamesOnlySniff:allowFullyQualifiedGlobalFunctions- allows using fully qualified functions from global space (i.e.\phpversion())ReferenceUsedNamesOnlySniff:allowFullyQualifiedGlobalConstants- allows using fully qualified constants from global space (i.e.\PHP_VERSION)
Fixes:
UseStatement: Constant name are not case insensitiveReferencedNameHelper: Type hints of variadic parameters and parameters passed by reference wasn't recognizedTypeHintDeclarationSniff: Methods with{@ignoredoc}format wasn't ignoredTypeHintDeclarationSniff:{@ignoredoc}is case insensitive nowYodaComparisonSniff: Fixed bugs with logicaland,orandxorUnusedPrivateElementsSniff: Fixed false positive
3.3.0
New sniffs:
FullyQualifiedGlobalFunctionsSniff: All references to global functions must be referenced via a fully qualified nameFullyQualifiedGlobalConstantsSniff: All references to global constants must be referenced via a fully qualified name
Fixes:
UseStatement: Constant name are not case insensitiveReferencedNameHelper: Type hints of variadic parameters and parameters passed by reference wasn't recognized