Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Please hint at @implements when encountering untyped generic interface #2974

@alsciende

Description

@alsciende

Feature request

Hi! I just spent quite some time figuring out how to solve the warning:

Class App\Domain\Model\Collection implements generic interface IteratorAggregate but does not specify its types: TKey, TValue

I think it might be a real good idea to point the user in the direction of the @implements annotation, as it's really not straightforward.

For another, similar warning, there's a hint "Consider adding something like array<Foo> to the PHPDoc.".

Could you maybe add a hint "Consider adding something like @implement array<Foo> to the PHPDoc." to this warning? That would be so useful!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions