diff --git a/validation/raw_values.rst b/validation/raw_values.rst index 330cc302327..85977ce1008 100644 --- a/validation/raw_values.rst +++ b/validation/raw_values.rst @@ -58,7 +58,7 @@ Validation of arrays is possible using the ``Collection`` constraint:: ], 'email' => 'test@email.tld', 'simple' => 'hello', - 'gender' => 3, + 'eye_color' => 3, 'file' => null, 'password' => 'test', 'tags' => [ @@ -79,7 +79,7 @@ Validation of arrays is possible using the ``Collection`` constraint:: ]), 'email' => new Assert\Email(), 'simple' => new Assert\Length(['min' => 102]), - 'gender' => new Assert\Choice([3, 4]), + 'eye_color' => new Assert\Choice([3, 4]), 'file' => new Assert\File(), 'password' => new Assert\Length(['min' => 60]), 'tags' => new Assert\Optional([