Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 949c69e

Browse files
committed
Merge branch '2.0'
2 parents f41fb78 + a565874 commit 949c69e

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
@@ -61,7 +61,7 @@ Furthering our example, take a look at the ``ProtocolValidator`` as an example:
6161
{
6262
public function isValid($value, Constraint $constraint)
6363
{
64-
if (in_array($value, $constraint->protocols));
64+
if (in_array($value, $constraint->protocols)) {
6565
$this->setMessage($constraint->message, array('%protocols%' => $constraint->protocols));
6666
6767
return true;

0 commit comments

Comments
 (0)