This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Support nullable types #85
Open
Description
As per PHP 7.1, it is possible to define nullability of a type by adding a ?
in front of it ( https://wiki.php.net/rfc/nullable_types ).
A few heads-up:
- careful about
?Foo $bar = null
vs?Foo $bar
vsFoo $bar = null
- need to eventually patch the
TypeGenerator
to include the?
in it (not sure yet)