Skip to content

Add iterable to the method definitions #246

Description

@mschop

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions