Skip to content

Commit e459539

Browse files
committed
[Down to PHP 7.2] Handle download named argument with trailing comma
1 parent e43dd7a commit e459539

File tree

1 file changed

+39
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)