You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PSR12.Traits.UseDeclaration: check spacing after use keyword for multi-line statements
While the `processUseStatement()` method checking single-line trait `use` statements would check the spacing after the `use` keyword, the `processUseGroup()` method checking multi-line trait `use` statements did not execute that same check, while the rule applies to both single- as well as multi-line `use` statements.
By moving the check for the spacing after the `use` keyword to the `process()` method, it will now be executed for both situations.
Tested by adjusting a pre-existing test.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -167,6 +167,8 @@ The file documents changes to the PHP_CodeSniffer project.
167
167
- Fixed bug #3856 : PSR12.Traits.UseDeclaration was using the wrong error code - SpacingAfterAs - for spacing issues after the use keyword
168
168
- These will now be reported using the SpacingAfterUse error code.
169
169
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
170
+
- Fixed bug #3856 : PSR12.Traits.UseDeclaration did not check spacing after use keyword for multi-line trait use statements
171
+
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
170
172
- Fixed bug #3867 : Tokenizer/PHP: union type and intersection type operators were not correctly tokenized for static properties without explicit visibility
171
173
- Thanks to Juliette Reinders Folmer (@jrfnl) for the patch
172
174
- Fixed bug #3877 : Filter names can be case-sensitive. The -h help text will now display the correct case for the available filters
0 commit comments