$iterable of type iterable is incompatible with the type array expected by parameter $array of ArrayIterator::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
22
return new \ArrayIterator(/** @scrutinizer ignore-type */ $iterable);