File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
src/Symfony/Component/Validator Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,18 @@ class ConstraintViolation implements ConstraintViolationInterface
33
33
* Creates a new constraint violation.
34
34
*
35
35
* @param string|\Stringable $message The violation message as a string or a stringable object
36
- * @param string $messageTemplate The raw violation message
36
+ * @param string|null $messageTemplate The raw violation message
37
37
* @param array $parameters The parameters to substitute in the
38
38
* raw violation message
39
39
* @param mixed $root The value originally passed to the
40
40
*
10000
validator
41
- * @param string $propertyPath The property path from the root
41
+ * @param string|null $propertyPath The property path from the root
42
42
* value to the invalid value
43
43
* @param mixed $invalidValue The invalid value that caused this
44
44
* violation
45
45
* @param int|null $plural The number for determining the plural
46
46
* form when translating the message
47
- * @param mixed $code The error code of the violation
47
+ * @param string|null $code The error code of the violation
48
48
* @param Constraint|null $constraint The constraint whose validation
49
49
* caused the violation
50
50
* @param mixed $cause The cause of the violation
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class ExecutionContext implements ExecutionContextInterface
56
56
private $ translator ;
57
57
58
58
/**
59
- * @var string
59
+ * @var string|null
60
60
*/
61
61
private $ translationDomain ;
62
62
@@ -112,21 +112,21 @@ class ExecutionContext implements ExecutionContextInterface
112
112
/**
113
113
* Stores which objects have been validated in which group.
114
114
*
115
- * @var array
115
+ * @var bool[][]
116
116
*/
117
117
private $ validatedObjects = [];
118
118
119
119
/**
120
120
* Stores which class constraint has been validated for which object.
121
121
*
122
- * @var array
122
+ * @var bool[]
123
123
*/
124
124
private $ validatedConstraints = [];
125
125
126
126
/**
127
127
* Stores which objects have been initialized.
128
128
*
129
- * @var array
129
+ * @var bool[]
130
130
*/
131
131
private $ initializedObjects ;
132
132
private $ cachedObjectsRefs ;
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ public function __construct(\Closure $propertyValueCallback)
27
27
28
28
public function getPropertyValue ()
29
29
{
30
- return \call_user_func ($ this ->propertyValueCallback );
30
+ return ($ this ->propertyValueCallback )( );
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments