-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #204: Support for the ... operator in function calls implemented
- Loading branch information
Manuel Pichler
committed
Jan 6, 2017
1 parent
e805725
commit 078e532
Showing
8 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...iles/Source/Language/PHP/PHPParserGenericVersion56/testEllipsisOperatorInFunctionCall.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
function foo($a, $b) { | ||
} | ||
|
||
function bar($x, $y) { | ||
foo(...[$x, $y]); | ||
} | ||
|
||
function baz() { | ||
bar(42, ...[23]); | ||
} |
11 changes: 11 additions & 0 deletions
11
...rce/Language/PHP/PHPParserVersion55/testEllipsisOperatorInFunctionCallThrowsException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
function foo($a, $b) { | ||
} | ||
|
||
function bar($x, $y) { | ||
foo(...[$x, $y]); | ||
} | ||
|
||
function baz() { | ||
bar(42, ...[23]); | ||
} |
11 changes: 11 additions & 0 deletions
11
...urces/files/Source/Language/PHP/PHPParserVersion56/testEllipsisOperatorInFunctionCall.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
function foo($a, $b) { | ||
} | ||
|
||
function bar($x, $y) { | ||
foo(...[$x, $y]); | ||
} | ||
|
||
function baz() { | ||
bar(42, ...[23]); | ||
} |