File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed
rules-tests/CodeQuality/Rector/FuncCall/SortNamedParamRector Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 22
33namespace Rector \Tests \CodeQuality \Rector \FuncCall \SortNamedParamRector \Fixture ;
44
5- #[\Attribute]
6- class MyAttribute
7- {
8- public function __construct ($ foo = null , $ bar = null , $ baz = null )
9- {
10- }
11- }
5+ use Rector \Tests \CodeQuality \Rector \FuncCall \SortNamedParamRector \Source \MyAttribute ;
126
137#[MyAttribute(bar: 1 , foo: 2 )]
148#[MyAttribute(1 , baz: 2 , bar: 3 )]
@@ -22,13 +16,7 @@ class Test
2216
2317namespace Rector \Tests \CodeQuality \Rector \FuncCall \SortNamedParamRector \Fixture ;
2418
25- #[\Attribute]
26- class MyAttribute
27- {
28- public function __construct ($ foo = null , $ bar = null , $ baz = null )
29- {
30- }
31- }
19+ use Rector \Tests \CodeQuality \Rector \FuncCall \SortNamedParamRector \Source \MyAttribute ;
3220
3321#[MyAttribute(foo: 2 , bar: 1 )]
3422#[MyAttribute(1 , bar: 3 , baz: 2 )]
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Rector \Tests \CodeQuality \Rector \FuncCall \SortNamedParamRector \Source ;
4+
5+ #[\Attribute]
6+ class MyAttribute
7+ {
8+ public function __construct ($ foo = null , $ bar = null , $ baz = null )
9+ {
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments