Skip to content

Support for php7.1 nullable types #461

@atallahade

Description

@atallahade

It seems that with the current version (0.8.3) there is no support for nullable types.

This code:

<?php

function testReturn(): ?string
{
    return 'elePHPant';
}

Will throw this error:

ParseError (syntax error, unexpected '?')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions