Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator