Commit aecc0ffa authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Remove double normalization

parent eef2b656
Loading
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -44,12 +44,6 @@ trait IterableValueTrait
            goto start; // restart parsing
        }

        if (\is_array($iterable)) {
            $iterable = new ArrayIterator($iterable);
        } elseif ($iterable instanceof stdClass) {
            $iterable = new ArrayObject($iterable);
        }

        return new self($iterable);
    }

@@ -62,12 +56,6 @@ trait IterableValueTrait
            goto start; // restart parsing
        }

        if (\is_array($iterable)) {
            $iterable = new ArrayIterator($iterable);
        } elseif ($iterable instanceof stdClass) {
            $iterable = new ArrayObject($iterable);
        }

        return new self($iterable);
    }