Skip to content

Commit 552e4d1

Browse files
committed
improve test
1 parent ccb61b2 commit 552e4d1

File tree

1 file changed

+20
-0
lines changed

1 file changed

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

89
strlen('another',);
10+
11+
strlen(1, 2, 3, ) > strlen(1 , 2 , 3 ,);
12+
13+
strlen(
14+
'multiple new lines'
15+
16+
,
17+
);
918
-----
1019
$stmts[0]->expr->args = [new Node\VariadicPlaceholder()];
1120
$stmts[1]->expr->args = [new Node\VariadicPlaceholder()];
21+
$stmts[2]->expr->right->args = [new Node\VariadicPlaceholder()];
22+
$stmts[3]->expr->args = [new Node\VariadicPlaceholder()];
1223
-----
1324
<?php
25+
1426
strlen(
1527
...
1628
);
1729

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

0 commit comments

Comments
 (0)