Skip to content

2.5.0

Compare
Choose a tag to compare
@kukulich kukulich released this 15 Sep 16:26
4f59b04

New checks:

  • TypeHintDeclarationSniff: Checks if closures use void type 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 insensitive
  • ReferencedNameHelper: Type hints of variadic parameters and parameters passed by reference wasn't recognized
  • TypeHintDeclarationSniff: Methods with {@ignoredoc} format wasn't ignored
  • TypeHintDeclarationSniff: {@ignoredoc} is case insensitive now
  • YodaComparisonSniff: Fixed bugs with logical and, or and xor
  • UnusedPrivateElementsSniff: Fixed false positive