From 992f0d84581d70320297be56fb10b5d9ee507ee9 Mon Sep 17 00:00:00 2001 From: Artyum Date: Fri, 27 Dec 2019 10:54:15 +0400 Subject: [PATCH] Update Valid.rst Changed few double-quotes to single-quotes for code consistency --- reference/constraints/Valid.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/constraints/Valid.rst b/reference/constraints/Valid.rst index c5bb19fa89f..5ccc42bdb29 100644 --- a/reference/constraints/Valid.rst +++ b/reference/constraints/Valid.rst @@ -157,7 +157,7 @@ stores an ``Address`` instance in the ``$address`` property:: { $metadata->addPropertyConstraint('street', new Assert\NotBlank()); $metadata->addPropertyConstraint('zipCode', new Assert\NotBlank()); - $metadata->addPropertyConstraint('zipCode', new Assert\Length(["max" => 5])); + $metadata->addPropertyConstraint('zipCode', new Assert\Length(['max' => 5])); } } @@ -172,7 +172,7 @@ stores an ``Address`` instance in the ``$address`` property:: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('firstName', new Assert\NotBlank()); - $metadata->addPropertyConstraint('firstName', new Assert\Length(["min" => 4])); + $metadata->addPropertyConstraint('firstName', new Assert\Length(['min' => 4])); $metadata->addPropertyConstraint('lastName', new Assert\NotBlank()); } }