0.6.0
Fixes
- Fix DocBlockParamAllowDefaultValueSniff positional mismatch on partial
@paramlists, which could cause an infinite fixer loop with DocBlockParamTypeMismatchSniff (#58)
Improvements
- Replace internal sniffs with their PHPCSExtra Universal equivalents (supersets):
PhpCollective.ControlStructures.DisallowAlternativeControlStructures→Universal.ControlStructures.DisallowAlternativeSyntax,PhpCollective.WhiteSpace.CommaSpacing→Universal.WhiteSpace.CommaSpacing(#55) - Add additional Universal sniffs to the ruleset (#54)
- Add Universal attribute and whitespace sniffs (#56)
- Disallow partial uses in
ReferenceUsedNamesOnly(#57)
Migration
Partial namespace references (e.g. Mockery\MockInterface when only Mockery is imported) are now flagged and must be imported via a full use statement. To keep the previous behavior, override the property in your project's phpcs.xml:
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowPartialUses" value="true"/>
</properties>
</rule>Full Changelog: 0.5.5...0.6.0