Skip to content

@method annotation ignore stub files @throws annotation #7667

@VincentLanglet

Description

@VincentLanglet

Bug report

Similar to #7552

Having a stub

class Foo
{
     /** @throws \Exception */
     public function get(): void;
}

seems useless when the class (in the vendor) is defined this way

/** @method void get() */
class Foo
{
}

If I change the vendor to

class Foo
{
     public function get(): void {}
}

it works fine.

Expected output

I would like to be able to define thrown exceptions for method defined with @method.

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