Skip to content

Commit 051e6ed

Browse files
committed
[Test] Add more test fixture for downgrade named argumetn with trailing comma
1 parent 93b1aff commit 051e6ed

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
namespace Rector\Tests\Set\Fixture;
4+
5+
final class NamedArgumentTrailingComma3
6+
{
7+
public function run(string $foo, string $bar, string $baz)
8+
{}
9+
10+
public function execute()
11+
{
12+
$this->run(
13+
bar: 'bar',
14+
baz: 'baz',
15+
foo: 'foo',
16+
);
17+
}
18+
}
19+
20+
?>
21+
-----
22+
<?php
23+
24+
namespace Rector\Tests\Set\Fixture;
25+
26+
final class NamedArgumentTrailingComma3
27+
{
28+
public function run(string $foo, string $bar, string $baz)
29+
{}
30+
31+
public function execute()
32+
{
33+
$this->run('foo', 'bar', 'baz');
34+
}
35+
}
36+
37+
?>

0 commit comments

Comments
 (0)