Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2cd45a5

Browse filesBrowse files
committed
minor #20011 Use UUID for error codes for Form validator. (Koc)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #20011). Discussion ---------- Use UUID for error codes for Form validator. | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | tiny, but it allowed http://symfony.com/doc/current/contributing/code/bc.html#changing-classes | Deprecations? | no | Tests pass? | I hope so :) | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 6dbb186 Use UUID for error codes for Form validator.
2 parents d842307 + 6dbb186 commit 2cd45a5
Copy full SHA for 2cd45a5

File tree

1 file changed

+3
-3
lines changed
Filter options
  • src/Symfony/Component/Form/Extension/Validator/Constraints

1 file changed

+3
-3
lines changed

‎src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Validator/Constraints/Form.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
*/
1919
class Form extends Constraint
2020
{
21-
const NOT_SYNCHRONIZED_ERROR = 1;
22-
const NO_SUCH_FIELD_ERROR = 2;
21+
const NOT_SYNCHRONIZED_ERROR = '1dafa156-89e1-4736-b832-419c2e501fca';
22+
const NO_SUCH_FIELD_ERROR = '6e5212ed-a197-4339-99aa-5654798a4854';
2323

2424
/**
2525
* @deprecated since version 2.6, to be removed in 3.0.
2626
* Use {@self NOT_SYNCHRONIZED_ERROR} instead.
2727
*/
28-
const ERR_INVALID = 1;
28+
const ERR_INVALID = self::NOT_SYNCHRONIZED_ERROR;
2929

3030
protected static $errorNames = array(
3131
self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.