@@ -625,7 +625,7 @@ this method must return ``true``:
625625 class Author
626626 {
627627 /**
628- * @Assert\True (message = "The password cannot match your first name")
628+ * @Assert\IsTrue (message = "The password cannot match your first name")
629629 */
630630 public function isPasswordLegal()
631631 {
@@ -670,7 +670,7 @@ this method must return ``true``:
670670 {
671671 public static function loadValidatorMetadata(ClassMetadata $metadata)
672672 {
673- $metadata->addGetterConstraint('passwordLegal', new Assert\True (array(
673+ $metadata->addGetterConstraint('passwordLegal', new Assert\IsTrue (array(
674674 'message' => 'The password cannot match your first name',
675675 )));
676676 }
@@ -928,7 +928,7 @@ username and the password are different only if all other validation passes
928928 private $password;
929929
930930 /**
931- * @Assert\True (message="The password cannot match your username", groups={"Strict"})
931+ * @Assert\IsTrue (message="The password cannot match your username", groups={"Strict"})
932932 */
933933 public function isPasswordLegal()
934934 {
@@ -1002,7 +1002,7 @@ username and the password are different only if all other validation passes
10021002 $metadata->addPropertyConstraint('username', new Assert\NotBlank());
10031003 $metadata->addPropertyConstraint('password', new Assert\NotBlank());
10041004
1005- $metadata->addGetterConstraint('passwordLegal', new Assert\True (array(
1005+ $metadata->addGetterConstraint('passwordLegal', new Assert\IsTrue (array(
10061006 'message' => 'The password cannot match your first name',
10071007 'groups' => array('Strict'),
10081008 )));
0 commit comments