Skip to content

Commit 9604fe2

Browse files
committed
PSR12.Traits.UseDeclaration now ensures all trait import statements are grouped together (ref #2691)
1 parent c27927c commit 9604fe2

File tree

5 files changed

+222
-155
lines changed

5 files changed

+222
-155
lines changed

package.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ http://pear.php.net/dtd/package-2.0.xsd">
4444
- Generic.WhiteSpace.ScopeIndent now supports static arrow functions
4545
- PSR2.ControlStructures.ControlStructureSpacing now checks whitespace before the closing parenthesis of multi-line control structures
4646
-- Previously, it incorrectly applied the whitespace check for single-line definitions only
47+
- PSR12.Traits.UseDeclaration now ensures all trait import statements are grouped together
48+
-- Previously, the trait import section of the class ended when the first non-import statement was found
49+
-- Checking now continues throughout the class to ensure all statements are grouped together
50+
-- This also ensures that empty lines are not requested after an import statement that isn't the last one
4751
- Fixed bug #2586 : Generic.WhiteSpace.ScopeIndent false positives when indenting open tags at a non tab-stop
4852
- Fixed bug #2638 : Squiz.CSS.DuplicateClassDefinitionSniff sees comments as part of the class name
4953
-- Thanks to Raphael Horber for the patch

0 commit comments

Comments
 (0)