We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Constraint::$errorNames
Constraint::ERROR_NAMES
1 parent 02c43d1 commit ac9c573Copy full SHA for ac9c573
Extension/Validator/Constraints/Form.php
@@ -21,11 +21,16 @@ class Form extends Constraint
21
public const NOT_SYNCHRONIZED_ERROR = '1dafa156-89e1-4736-b832-419c2e501fca';
22
public const NO_SUCH_FIELD_ERROR = '6e5212ed-a197-4339-99aa-5654798a4854';
23
24
- protected static $errorNames = [
+ protected const ERROR_NAMES = [
25
self::NOT_SYNCHRONIZED_ERROR => 'NOT_SYNCHRONIZED_ERROR',
26
self::NO_SUCH_FIELD_ERROR => 'NO_SUCH_FIELD_ERROR',
27
];
28
29
+ /**
30
+ * @deprecated since Symfony 6.1, use const ERROR_NAMES instead
31
+ */
32
+ protected static $errorNames = self::ERROR_NAMES;
33
+
34
/**
35
* {@inheritdoc}
36
*/
0 commit comments