Revert "minor #20011 Use UUID for error codes for Form validator. (Koc)"
This reverts commit2cd45a5043
, reversing changes made tod8423071de
.
This commit is contained in:
parent
2cd45a5043
commit
bb51ed0d20
@ -18,14 +18,14 @@ use Symfony\Component\Validator\Constraint;
|
|||||||
*/
|
*/
|
||||||
class Form extends Constraint
|
class Form extends Constraint
|
||||||
{
|
{
|
||||||
const NOT_SYNCHRONIZED_ERROR = '1dafa156-89e1-4736-b832-419c2e501fca';
|
const NOT_SYNCHRONIZED_ERROR = 1;
|
||||||
const NO_SUCH_FIELD_ERROR = '6e5212ed-a197-4339-99aa-5654798a4854';
|
const NO_SUCH_FIELD_ERROR = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated since version 2.6, to be removed in 3.0.
|
* @deprecated since version 2.6, to be removed in 3.0.
|
||||||
* Use {@self NOT_SYNCHRONIZED_ERROR} instead.
|
* Use {@self NOT_SYNCHRONIZED_ERROR} instead.
|
||||||
*/
|
*/
|
||||||
const ERR_INVALID = self::NOT_SYNCHRONIZED_ERROR;
|
const ERR_INVALID = 1;
|
||||||
|
|
||||||
protected static $errorNames = array(
|
protected static $errorNames = array(
|
||||||
self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',
|
self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',
|
||||||
|
Reference in New Issue
Block a user