public function withoutNumericIndices(): self
    {
        $pairs = array_map([$this, 'encodeNumericIndices'], $this->pairs);
        if ($pairs === $this->pairs) {
            return $this;
        }

        $clone = clone $this;
        $clone->pairs = $pairs;

        return $clone;
    }
public function withoutNumericIndices(): self
    {
        $pairs = array_map([$this, 'encodeNumericIndices'], $this->pairs);
        if ($pairs === $this->pairs) {
            return $this;
        }

        $clone = clone $this;
        $clone->pairs = $pairs;

        return $clone;
    }
public function withoutNumericIndices ( ) : self { $ pairs = array_map ( [ $ this , 'encodeNumericIndices' ] , $ this -> pairs ) ; if ( $ pairs === $ this -> pairs ) { return $ this ; } $ clone = clone $ this ; $ clone -> pairs = $ pairs ; return $ clone ; }
Returns an instance where numeric indices associated to PHP's array like key are removed.

This method MUST retain the state of the current instance, and return
an instance that contains the query component normalized so that numeric indexes
are removed from the pair key value.

ie.: toto[3]=bar[3]&foo=bar becomes toto[]=bar[3]&foo=bar
Returns an instance where numeric indices associated to PHP s array like key are removed .