From a2ec22b2a83fc68f6e82cf21a1e71e38089197c8 Mon Sep 17 00:00:00 2001 From: Christoph Schmidt Date: Tue, 3 Dec 2013 15:51:17 +0100 Subject: [PATCH] Update Callback.rst add square brackets to yaml codeblock (constraints: - Callback: [validate]). Otherwise an error "Expected argument of type array, string given" is thrown --- reference/constraints/Callback.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index e59754f450a..e370c46ecf1 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -42,7 +42,7 @@ Configuration # src/Acme/BlogBundle/Resources/config/validation.yml Acme\BlogBundle\Entity\Author: constraints: - - Callback: validate + - Callback: [validate] .. code-block:: php-annotations