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

Add iterable to the method definitions #246

Open
mschop opened this issue Oct 25, 2022 · 0 comments
Open

Add iterable to the method definitions #246

mschop opened this issue Oct 25, 2022 · 0 comments

Comments

@mschop
Copy link

mschop commented Oct 25, 2022

Hi,

since PHP 7.1 one can use iterable type hint for everything that is iterable, including array and Traversable.

I know this lib shall also work for older PHP version, but adding iterable to the phpdoc-block would not hurt.

Currently IDE's and other tools throw warnings when I pass an iterable instead of an array or a Traversable.

Suggestion:

Add iterable to all doc-blocks.

Best Regards
Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant