sebastianbergmann/type

No support for special "iterable" type

Closed this issue · 2 comments

Newest PHPUnit version 8.2.0 gives us a lot of warnings ("Method ... may not return value of type array") when mocking methods which have "iterable" as return type hint and giving arrays as return value.

Perhaps this should be its own Type-Class here?

Similar problem with "callable"

Should be fixed by 3f27e78 and 79fd7f2, respectively.