facebook / facebook/hhvm

Allow unpacking multiple arguments

Open
#4,940 3 comments 0 reactions 0 assignees View on GitHub
php5 incompatibility
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

PHP (5.6+) allows unpacking multiple arguments, HHVM only allows unpacking for the last argument. For example, the following does not work:

``` php
function add($a, $b, $c, $d)
{
echo $a + $b + $c + $d;
}

add(...[2, 3], ...[4, 5]);
```

http://3v4l.org/lLuMG

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.