jaytaph / Transphpile

PHP 7 to PHP 5.6 Transpiler
BSD 3-Clause "New" or "Revised" License
177 stars 9 forks source link

Incorrect code generated when combining scalar type hint with varargs #20

Open TysonAndre opened 7 years ago

TysonAndre commented 7 years ago

Observed: function test(int ...$args) {} will generate single check that is_int($args). Expected: Will loop over elements of $args and assert is_int($elem)