public function offsetUnset($offset)
    {
        $count = count($this->container);
        if (!is_numeric($offset) || $count === 0 || $offset !== $count - 1) {
            trigger_error(
                "Cannot remove element at the given index",
                E_USER_ERROR);
            return;
        }
        array_pop($this->container);
    }
public function offsetUnset($offset)
    {
        $count = count($this->container);
        if (!is_numeric($offset) || $count === 0 || $offset !== $count - 1) {
            trigger_error(
                "Cannot remove element at the given index",
                E_USER_ERROR);
            return;
        }
        array_pop($this->container);
    }
public function offsetUnset ( $ offset ) { $ count = count ( $ this -> container ) ; if ( ! is_numeric ( $ offset ) || $ count === 0 || $ offset !== $ count - 1 ) { trigger_error ( "Cannot remove element at the given index" , E_USER_ERROR ) ; return ; } array_pop ( $ this -> container ) ; }
Remove the element at the given index.

This will also be called for: unset($arr)

@param long $offset The index of the element to be removed.
@return void
@throws \ErrorException Invalid type for index.
@throws \ErrorException The element to be removed is not at the end of the
RepeatedField.
Remove the element at the given index .