src/Converter/Arr.php
public function convert(Traversable $traversable)
    {
        $result = [];
        foreach ($traversable as $key => $value) {
            if ($this->recursive
                && $value instanceof Traversable) {
                $value = $this->convert($value);
            }
            $result[$key] = $value;
        }

        return $result;
    }
public function convert(Traversable $traversable)
    {
        $result = [];
        foreach ($traversable as $key => $value) {
            if ($this->recursive
                && $value instanceof Traversable) {
                $value = $this->convert($value);
            }
            $result[$key] = $value;
        }

        return $result;
    }
{@inheritdoc}