4.2.0
Deprecated:
ClassConstantVisibilitySniff
:enabled
- Deprecated nowNullableTypeForNullDefaultValueSniff
:enabled
- Deprecated nowTypeHintDeclarationSniff
:enableNullableTypeHints
- Deprecated nowTypeHintDeclarationSniff
:enableVoidTypeHint
- Deprecated now
Improvements:
UseDoesNotStartWithBackslashSniff
: Detects functions and constants nowUseDoesNotStartWithBackslashSniff
: Sniff is now fixableDeclareStrictTypesSniff
:newlinesCountAfterDeclare
- Allows to set 0 to N newlines to be betweendeclare
and next statementFullyQualifiedGlobalFunctionsSniff
:exclude
- List of global functions that are allowed not to be referenced via FQNFullyQualifiedGlobalConstantsSniff
:exclude
- List of global constants that are allowed not to be referenced via FQNClassConstantVisibilitySniff
: Sniff is now fixable (thanks to @Majkl578)ClassConstantVisibilitySniff
:fixable
- The sniff is not fixable by default because we think it's better to decide about each constant one by one however you can enable fixability with this optionLongTypeHintsSniff
: Sniff is now fixable
Fixes:
RequireYodaComparisonSniff
: Fixed short array supportDisallowYodaComparisonSniff
: Fixed short array supportUnusedPrivateElementsSniff
: Fixed false positive for static propertiesUnusedPrivateElementsSniff
: Fixed detection of write only propertiesUnusedPrivateElementsSniff
: Fixed false positive when calling private method on the same classFullyQualifiedGlobalFunctionsSniff
: Improved ignoring functions that are not globalFullyQualifiedGlobalConstantsSniff
: Improved ignoring constants that are not globalReferencedNameHelper
: Methods imported from trait should not be detected as referenced names