Skip to content

Commit fedc9d4

Browse files
committed
Fixing PHP syntax error
1 parent 8a3e286 commit fedc9d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/validation/custom_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ The validator class is also simple, and only has one required method: ``isValid`
6363
public function isValid($value, Constraint $constraint)
6464
{
6565
if (!preg_match('/^[a-zA-Za0-9]+$/', $value, $matches)) {
66-
$this->setMessage($constraint->message, array('%string%' => $value);
66+
$this->setMessage($constraint->message, array('%string%' => $value));
6767

6868
return false;
6969
}

0 commit comments

Comments
 (0)