Skip to content
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
Open
@Ocramius

Description

@Ocramius

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 vs Foo $bar = null
  • need to eventually patch the TypeGenerator to include the ? in it (not sure yet)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions