Skip to content

Add support for never type #129

@jaapio

Description

@jaapio

php 8.1 adds the never keyword for methods that do not return.

function method(): never {
   exit(1);
}

New type must be added to the type-resolver. Which should be enough to have support in all phpDocumentor libraries.

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