jaytaph / Transphpile

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

Fixes #20: Generate correct code for function test(int ...$args) #21

Open TysonAndre opened 7 years ago

TysonAndre commented 7 years ago

Also, include stderr for error messages of tests failures, to make debugging failures easier when stdout is wrong

PHP's error message (in 7.1) would say "argument 1" or "argument 2" instead of "argument $arg", didn't seem important for varargs and $arg is already being used in messages