jaytaph / Transphpile

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

Partially support transpiling php 7.1 nullable types in params #14

Closed TysonAndre closed 7 years ago

TysonAndre commented 7 years ago

Convert ?string $x into ?string $x = null This won't work for a few cases, such as ?string $x = 'default', but works for a large fraction of cases.

Also, types are case insensitive.

jaytaph commented 7 years ago

Thanks @TysonAndre for the PR