2.5.0
New checks:
TypeHintDeclarationSniff
: Checks if closures usevoid
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 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
,or
andxor
UnusedPrivateElementsSniff
: Fixed false positive