8000 minor #7281 PHP sample had a mistake (manoakys) · symfony/symfony-docs@f1e9584 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1e9584

Browse files
committed
minor #7281 PHP sample had a mistake (manoakys)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7281). Discussion ---------- PHP sample had a mistake was $metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary')); should be $metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary')); Commits ------- 6781134 PHP sample had mistake
2 parents a342483 + 6781134 commit f1e9584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/NotEqualTo.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ the following:
102102
{
103103
public static function loadValidatorMetadata(ClassMetadata $metadata)
104104
{
105-
$metadata->addPropertyConstraint('age', new Assert\NotEqualTo('Mary'));
105+
$metadata->addPropertyConstraint('firstName', new Assert\NotEqualTo('Mary'));
106106
107107
$metadata->addPropertyConstraint('age', new Assert\NotEqualTo(array(
108108
'value' => 15,

0 commit comments

Comments
 (0)
0