From f574acb398eafb77ea0d5f9dc2017a90bf5a9111 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sat, 21 Mar 2020 10:59:52 +0100 Subject: [PATCH] use NotNull instead of NotBlank --- reference/constraints/Sequentially.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/constraints/Sequentially.rst b/reference/constraints/Sequentially.rst index 573a0a94a8e..a8e7c6be298 100644 --- a/reference/constraints/Sequentially.rst +++ b/reference/constraints/Sequentially.rst @@ -57,7 +57,7 @@ You can validate each of these constraints sequentially to solve these issues: * @var string * * @Assert\Sequentially({ - * @Assert\NotBlank(), + * @Assert\NotNull(), * @Assert\Type("string"), * @Assert\Length(min=10), * @Assert\Regex(Place::ADDRESS_REGEX), @@ -74,7 +74,7 @@ You can validate each of these constraints sequentially to solve these issues: properties: address: - Sequentially: - - NotBlank: ~ + - NotNull: ~ - Type: string - Length: { min: 10 } - Regex: !php/const App\Localization\Place::ADDRESS_REGEX @@ -91,7 +91,7 @@ You can validate each of these constraints sequentially to solve these issues: - + string @@ -119,7 +119,7 @@ You can validate each of these constraints sequentially to solve these issues: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addPropertyConstraint('address', new Assert\Sequentially([ - new Assert\NotBlank(), + new Assert\NotNull(), new Assert\Type("string"), new Assert\Length(['min' => 10]), new Assert\Regex(self::ADDRESS_REGEX),