Value/ValuesBag.php
public function remove(string $type, int $index)
    {
        if (isset($this->values[$type][$index])) {
            unset($this->values[$type][$index]);

            --$this->valuesCount;
        }

        return $this;
    }
public function remove(string $type, int $index)
    {
        if (isset($this->values[$type][$index])) {
            unset($this->values[$type][$index]);

            --$this->valuesCount;
        }

        return $this;
    }
public function remove ( string $ type , int $ index ) { if ( isset ( $ this -> values [ $ type ] [ $ index ] ) ) { unset ( $ this -> values [ $ type ] [ $ index ] ) ; -- $ this -> valuesCount ; } return $ this ; }
Remove a value by type and index.

@return ValuesBag New ValuesBag object with the referenced values removed
Remove a value by type and index .