We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606d605 commit 7d56a5cCopy full SHA for 7d56a5c
cookbook/validation/custom_constraint.rst
@@ -64,7 +64,7 @@ The validator class is also simple, and only has one required method ``validate(
64
{
65
public function validate($value, Constraint $constraint)
66
67
- if (!preg_match('/^[a-zA-Za0-9]+$/', $value, $matches)) {
+ if (!preg_match('/^[a-zA-Z0-9]+$/', $value, $matches)) {
68
$this->context->addViolation(
69
$constraint->message,
70
array('%string%' => $value)
0 commit comments