Skip to content

Docblock generation for never #193

@Zerotask

Description

@Zerotask

PHP 8.1 introduced the never type (https://php.watch/versions/8.1/never-return-type).
If I create a docblock for the following code, it should add @return never and not @return void

<?php

class User
{
    public function getName()
    {
        exit();
    }
}

Not really important for me, I just noticed it while I was playing around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions