jaytaph / Transphpile

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

Support php 7.1 nullable types when validating return statements #15

Closed TysonAndre closed 7 years ago

TysonAndre commented 7 years ago

Also, uniqid() was misused, uniqid(true) adds a prefix of "1" (strval(bool) === '1') See https://secure.php.net/uniqid

This shouldn't use more_entropy=true, since that adds an invalid '.' character