Skip to content

Php 7.1 return types support #469

Closed
Closed
@Moghul

Description

@Moghul

Consider a function like

    public function getProperty() : ?PropertyType {
        return $this->property;
    }

where our $property is a nullable PropertyType variable.

Currently, php-mode 1.19.1 will show an exception for that question mark. Is it possible to change a setting to make that work right or does it need to be implemented within php-mode?

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