From dbfd6352a9cec764023b4dc11673d127c05383c4 Mon Sep 17 00:00:00 2001 From: Pedro Junior Date: Thu, 20 Jun 2013 15:54:50 -0300 Subject: [PATCH] [Reference][Constraints] Added missing class to static callback example in PHP --- reference/constraints/Callback.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 892685fc90e..324dd53d6bc 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -182,7 +182,9 @@ process. Each method can be one of the following formats: public static function loadValidatorMetadata(ClassMetadata $metadata) { $metadata->addConstraint(new Callback(array( - 'methods' => array('isAuthorValid'), + 'methods' => array( + array('Acme\BlogBundle\MyStaticValidatorClass', 'isAuthorValid'), + ), ))); } }