From 6dbb186f23a82b2a67acdd96ea49d3623003a900 Mon Sep 17 00:00:00 2001 From: "Konstantin.Myakshin" Date: Wed, 21 Sep 2016 18:44:25 +0300 Subject: [PATCH] Use UUID for error codes for Form validator. --- .../Component/Form/Extension/Validator/Constraints/Form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php b/src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php index e2751e5bc8..439eb124f0 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php +++ b/src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php @@ -18,14 +18,14 @@ use Symfony\Component\Validator\Constraint; */ class Form extends Constraint { - const NOT_SYNCHRONIZED_ERROR = 1; - const NO_SUCH_FIELD_ERROR = 2; + const NOT_SYNCHRONIZED_ERROR = '1dafa156-89e1-4736-b832-419c2e501fca'; + const NO_SUCH_FIELD_ERROR = '6e5212ed-a197-4339-99aa-5654798a4854'; /** * @deprecated since version 2.6, to be removed in 3.0. * Use {@self NOT_SYNCHRONIZED_ERROR} instead. */ - const ERR_INVALID = 1; + const ERR_INVALID = self::NOT_SYNCHRONIZED_ERROR; protected static $errorNames = array( self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',