4.8.0
New sniffs:
RequireOnlyStandaloneIncrementAndDecrementOperatorsSniff: Reports++and--operators not used standaloneUselessParameterDefaultValueSniff: Looks for useless parameter default valueDisallowLateStaticBindingForContantsSniff: Disallows late static binding for constantsUselessLateStaticBindingSniff: Reports useless late static bindingControlStructureSpacingSniff: Enforces configurable number of lines around control structuresUselessConditionWithReturnSniff: Reports useless conditions where both branches returntrueorfalseRequireTernaryOperatorSniff: Requires ternary operator when possibleRequireMultiLineTernaryOperatorSniff: Ternary operator has to be reformatted to more lines when the line length exceeds the given limitDisallowImplicitArrayCreationSniff: Disallows implicit array creationDuplicateAssignmentToVariableSniff: Looks for duplicate assignments to a variableDisallowContinueWithoutIntegerOperandInSwitchSniff: Disallows use ofcontinuewithout integer operand inswitchbecause it's emits warning in PHP 7.3 and higherOptimizedFunctionsWithoutUnpackingSniff: Reports functions that should not be invoked with argument unpacking because of opcache optimizations (thanks to @Majkl578)
Improvements:
DocCommentSpacingSniff: New optionslinesCountBetweenAnnotationsGroupsandannotationsGroupsUselessParenthesesSniff: New optionignoreComplexTernaryConditionsUnusedVariableSniff: New optionignoreUnusedValuesWhenOnlyKeysAreUsedInForeachEarlyExitSniff: New optionignoreStandaloneIfInScopeShortListSniff: Improved fixer
Fixes:
EarlyExitSniff: Fixed false positiveUnusedVariableSniff: Fixed false positivesUselessParenthesesSniff: Fixed false positiveModernClassNameReferenceSniff: Fixed fixerRequireShortTernaryOperatorSniff: Infinite loop fix (thanks to @dg)ReferenceUsedNamesOnlySniff: Possible fix of false positivesDisallowIncrementAndDecrementOperatorsSniff: Fixed error codes for post operators in some situationsIdentificatorHelper: A lot of fixes