Skip to content

Commit 08919b3

Browse files
authored
fix: calls with multiple array spreads (#2010)
Fixes #1976
1 parent 500b3d2 commit 08919b3

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"linguist-languages": "^7.5.1",
1515
"mem": "^8.0.0",
16-
"php-parser": "3.1.0-beta.9"
16+
"php-parser": "3.1.0-beta.10"
1717
},
1818
"devDependencies": {
1919
"@babel/preset-env": "^7.18.0",

tests/call/__snapshots__/jsfmt.spec.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ func();
1111
func($a, $b, $c);
1212
func(...$a);
1313
func($a, ...$b);
14+
func(...$a, ...$b);
1415
$foo->func();
1516
func( $arg1,$arg2 ,$arg3, $arg4 , $arg5 );
1617
$foo -> bar ( $arg1,$arg2 ,$arg3, $arg4 , $arg5 ) ;
@@ -361,6 +362,7 @@ func();
361362
func($a, $b, $c);
362363
func(...$a);
363364
func($a, ...$b);
365+
func(...$a, ...$b);
364366
$foo->func();
365367
func($arg1, $arg2, $arg3, $arg4, $arg5);
366368
$foo->bar($arg1, $arg2, $arg3, $arg4, $arg5);

tests/call/call.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
func($a, $b, $c);
44
func(...$a);
55
func($a, ...$b);
6+
func(...$a, ...$b);
67
$foo->func();
78
func( $arg1,$arg2 ,$arg3, $arg4 , $arg5 );
89
$foo -> bar ( $arg1,$arg2 ,$arg3, $arg4 , $arg5 ) ;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3940,10 +3940,10 @@ path-type@^4.0.0:
39403940
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
39413941
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
39423942

3943-
php-parser@3.1.0-beta.9:
3944-
version "3.1.0-beta.9"
3945-
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.1.0-beta.9.tgz#f7a57c01d8483cb1401c516b797c610d2e91823f"
3946-
integrity sha512-cGVXw3IRbA5zwO3nnp3yKQhCsF4kZqodunlzaqK/xw9AhXhBazpmkxcazv//b430IVVYrt0UzH5kc0JMGg9t3A==
3943+
php-parser@3.1.0-beta.10:
3944+
version "3.1.0-beta.10"
3945+
resolved "https://registry.yarnpkg.com/php-parser/-/php-parser-3.1.0-beta.10.tgz#17de01d34c96305f9595b2d2613c7be9c5061a60"
3946+
integrity sha512-XsvaqkfRrwPEBNsOaQ7zMN26l0BDKdXoAwxWNlCe18LqnK27I1n9+0KnqbLBBpxSoAzYhY+uuuzzvD2imjkc3Q==
39473947

39483948
picocolors@^1.0.0:
39493949
version "1.0.0"

0 commit comments

Comments
 (0)