diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index f3cb36ff329..497e6fc3e87 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -92,7 +92,7 @@ If your valid choice list is simple, you can pass them in directly via the { $metadata->addPropertyConstraint('gender', new Assert\Choice(array( 'choices' => array('male', 'female'), - 'message' => 'Choose a valid gender', + 'message' => 'Choose a valid gender.', ))); } } diff --git a/reference/constraints/Max.rst b/reference/constraints/Max.rst index 8317e972e26..4bb358117f8 100644 --- a/reference/constraints/Max.rst +++ b/reference/constraints/Max.rst @@ -72,7 +72,7 @@ add the following: { $metadata->addPropertyConstraint('age', new Assert\Max(array( 'limit' => 50, - 'message' => "You must be 50 or under to enter.", + 'message' => 'You must be 50 or under to enter.', ))); } } diff --git a/reference/constraints/True.rst b/reference/constraints/True.rst index 556997c0aa0..682f3c12a55 100644 --- a/reference/constraints/True.rst +++ b/reference/constraints/True.rst @@ -50,7 +50,7 @@ Then you can constrain this method with ``True``. Acme\BlogBundle\Entity\Author: getters: tokenValid: - - "True": { message: "The token is invalid" } + - "True": { message: "The token is invalid." } .. code-block:: php-annotations @@ -78,7 +78,7 @@ Then you can constrain this method with ``True``. - + @@ -98,7 +98,7 @@ Then you can constrain this method with ``True``. public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addGetterConstraint('tokenValid', new True(array( - 'message' => 'The token is invalid', + 'message' => 'The token is invalid.', ))); }