-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/55' into develop
Forward port #55
- Loading branch information
Showing
5 changed files
with
87 additions
and
3 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
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
31 changes: 31 additions & 0 deletions
31
test/Sniffs/Namespaces/AlphabeticallySortedUsesUnitTest.2.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,31 @@ | ||
<?php | ||
|
||
use const D; | ||
use const C; | ||
use B; | ||
use A; | ||
use function Y; | ||
use function X; | ||
use A\TagManager; | ||
use A\Tag; | ||
use A\Tag\Tags; | ||
use C\Response as MyResponse; | ||
use C\Response\HtmlResponse; | ||
|
||
class J { | ||
use MyTrait; | ||
|
||
public function closure($foo) | ||
{ | ||
return function ($x) use ($foo) { | ||
return $x <=> $foo; | ||
}; | ||
} | ||
|
||
public function anonym() | ||
{ | ||
return new class() { | ||
use AnotherTrait; | ||
}; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
test/Sniffs/Namespaces/AlphabeticallySortedUsesUnitTest.2.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,33 @@ | ||
<?php | ||
|
||
use A; | ||
use A\Tag; | ||
use A\Tag\Tags; | ||
use A\TagManager; | ||
use B; | ||
use C\Response as MyResponse; | ||
use C\Response\HtmlResponse; | ||
|
||
use function X; | ||
use function Y; | ||
|
||
use const C; | ||
use const D; | ||
|
||
class J { | ||
use MyTrait; | ||
|
||
public function closure($foo) | ||
{ | ||
return function ($x) use ($foo) { | ||
return $x <=> $foo; | ||
}; | ||
} | ||
|
||
public function anonym() | ||
{ | ||
return new class() { | ||
use AnotherTrait; | ||
}; | ||
} | ||
} |
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