We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
...
1 parent 676ad71 commit 88c517fCopy full SHA for 88c517f
src/main/php/lang/ast/syntax/PHP.class.php
@@ -1755,7 +1755,7 @@ public function arguments($parse) {
1755
$parse->forward();
1756
1757
// Resolve ambiguity between unpack and variadic placeholder at the end of arguments
1758
- if (')' === $parse->token->value) {
+ if (')' === $parse->token->value || ',' === $parse->token->value) {
1759
$callable= true;
1760
$arguments[$offset]= Placeholder::$VARIADIC;
1761
} else {
0 commit comments