Skip to content

Commit 44586f9

Browse files
committed
clean
1 parent 4c907f4 commit 44586f9

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

rules/DowngradePhp73/Rector/FuncCall/DowngradeTrailingCommasInFunctionCallsRector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public function refactor(Node $node): ?Node
9393
if ($hasChanged) {
9494
return $node;
9595
}
96+
97+
return null;
9698
}
9799
}
98100

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

0 commit comments

Comments
 (0)