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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy