public function removeFrame($index)
    {
        if (!isset($this->frames[$index])) {
            throw new InvalidArgumentException('Invalid frame index to remove.');
        }

        array_splice($this->frames, $index, 1);
    }
public function removeFrame($index)
    {
        if (!isset($this->frames[$index])) {
            throw new InvalidArgumentException('Invalid frame index to remove.');
        }

        array_splice($this->frames, $index, 1);
    }
public function removeFrame ( $ index ) { if ( ! isset ( $ this -> frames [ $ index ] ) ) { throw new InvalidArgumentException ( 'Invalid frame index to remove.' ) ; } array_splice ( $ this -> frames , $ index , 1 ) ; }
Remove the frame at the given index from the stacktrace.

@param int $index

@throws \InvalidArgumentException

@return void
Remove the frame at the given index from the stacktrace .