Skip to content

Commit 7c5ae82

Browse files
committed
add failing fixture
1 parent b23b55b commit 7c5ae82

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,38 @@
11
Replace args with VariadicPlaceholder should remove trailing comma
22
-----
33
<?php
4+
45
strlen(
56
'test',
67
);
78

89
strlen('another',);
910

1011
strlen(1, 2, 3, ) > strlen(1 , 2 , 3 ,);
12+
13+
strlen(
14+
'multiple new lines'
15+
16+
,
17+
);
1118
-----
1219
$stmts[0]->expr->args = [new Node\VariadicPlaceholder()];
1320
$stmts[1]->expr->args = [new Node\VariadicPlaceholder()];
1421
$stmts[2]->expr->right->args = [new Node\VariadicPlaceholder()];
22+
$stmts[3]->expr->args = [new Node\VariadicPlaceholder()];
1523
-----
1624
<?php
25+
1726
strlen(
1827
...
1928
);
2029

2130
strlen(...);
2231

2332
strlen(1, 2, 3, ) > strlen(...);
33+
34+
strlen(
35+
'multiple new lines'
36+
37+
,
38+
);

0 commit comments

Comments
 (0)