-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX #1891 Where inline comment fails UseDeclaration sniff
- Loading branch information
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.10.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
// This should fail. | ||
|
||
class Baz | ||
{ | ||
|
||
} |
9 changes: 9 additions & 0 deletions
9
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.10.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
|
||
// This should fail. | ||
|
||
class Baz | ||
{ | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.9.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
use Foo\Bar; // trailing comment | ||
|
||
// This should pass. | ||
class Baz | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters