Skip to content

Commit d98467e

Browse files
authored
Added use statement for UnexpectedValueException
use Symfony\Component\Validator\Exception\UnexpectedValueException;
1 parent 3e95f36 commit d98467e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validation/custom_constraint.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ The validator class is also simple, and only has one required method ``validate(
6060
use Symfony\Component\Validator\Constraint;
6161
use Symfony\Component\Validator\ConstraintValidator;
6262
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
63+
use Symfony\Component\Validator\Exception\UnexpectedValueException;
6364

6465
class ContainsAlphanumericValidator extends ConstraintValidator
6566
{

0 commit comments

Comments
 (0)