Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse iterable pseudo-type #49

Open
dereckson opened this issue Apr 11, 2022 · 1 comment
Open

Parse iterable pseudo-type #49

dereckson opened this issue Apr 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@dereckson
Copy link

The PHP 7.1 iterable pseudo-type is currently resolved as a reference name in the current namespace instead of the pseudo-type.

For example, in this sample, the documentation shows iterable as Acme\Foo\iterable:

namespace Acme\Foo;

public function update (iterable $iterable) : self {
    // ...
}

A link to https://www.php.net/manual/en/language.types.iterable.php would be nice instead.

phpDocumentor docblock parser uses their TypeResolver library to parse it, and it seems to support it:
phpDocumentor/TypeResolver#80 (support for iterable<key type, value type>)

@williamdes
Copy link
Member

Hi @dereckson
Thank you for the report, I will keep this pinned to my todo list and keep you updated

@williamdes williamdes self-assigned this Apr 23, 2022
@williamdes williamdes added bug Something isn't working enhancement New feature or request labels Apr 23, 2022
@williamdes williamdes added this to the v5.5.2 milestone Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Development

No branches or pull requests

2 participants