You are here

public function ConstraintViolationList::remove in Plug 7

Removes a violation at a given offset.

@api

Parameters

int $offset The offset to remove.:

Overrides ConstraintViolationListInterface::remove

1 call to ConstraintViolationList::remove()
ConstraintViolationList::offsetUnset in lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationList.php, line 103

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public function remove($offset) {
  unset($this->violations[$offset]);
}