Skip to content

Commit 0ba11db

Browse files
committed
minor #10801 Added use statement for UnexpectedValueException (skipton-io)
This PR was merged into the 4.2 branch. Discussion ---------- Added use statement for UnexpectedValueException use Symfony\Component\Validator\Exception\UnexpectedValueException; <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- d98467e Added use statement for UnexpectedValueException
2 parents 3e95f36 + d98467e commit 0ba11db

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)