Skip to content

Add iterable return type to getReadRoutes() and getWriteRoutes() #19

@hollodotme

Description

@hollodotme

In PHP 7.1 the iterable pseudo type will be introduced that embraces the array and \Traversable types.

Currently both mentioned methods do not have a return type as we wanted the user to decide, whether an array or an \Iterator is returned.

When targeting PHP 7.1 with the next major version 3.0.0 the iterable return type can be added.
This also affects the ConfigWrapper class and lets the guardRoutesAreTraversable() method in AbstractRouter become obsolete.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions