@@ -66,6 +66,8 @@ interface ExecutionContextInterface
66
66
*
67
67
* @param string|\Stringable $message The error message as a string or a stringable object
68
68
* @param array $params The parameters substituted in the error message
69
+ *
70
+ * @return void
69
71
*/
70
72
public function addViolation (string $ message , array $ params = []);
71
73
@@ -125,7 +127,7 @@ public function getObject(): ?object;
125
127
* @internal Used by the validator engine. Should not be called by user
126
128
* code.
127
129
*/
128
- public function setNode (mixed $ value , ?object $ object , MetadataInterface $ metadata = null , string $ propertyPath );
130
+ public function setNode (mixed $ value , ?object $ object , MetadataInterface $ metadata = null , string $ propertyPath ): void ;
129
131
130
132
/**
131
133
* Sets the currently validated group.
@@ -135,15 +137,15 @@ public function setNode(mixed $value, ?object $object, MetadataInterface $metada
135
137
* @internal Used by the validator engine. Should not be called by user
136
138
* code.
137
139
*/
138
- public function setGroup (?string $ group );
140
+ public function setGroup (?string $ group ): void ;
139
141
140
142
/**
141
143
* Sets the currently validated constraint.
142
144
*
143
145
* @internal Used by the validator engine. Should not be called by user
144
146
* code.
145
147
*/
146
- public function setConstraint (Constraint $ constraint );
148
+ public function setConstraint (Constraint $ constraint ): void ;
147
149
148
150
/**
149
151
* Marks an object as validated in a specific validation group.
@@ -155,7 +157,7 @@ public function setConstraint(Constraint $constraint);
155
157
* @internal Used by the validator engine. Should not be called by user
156
158
* code.
157
159
*/
158
- public function markGroupAsValidated (string $ cacheKey , string $ groupHash );
160
+ public function markGroupAsValidated (string $ cacheKey , string $ groupHash ): void ;
159
161
160
162
/**
161
163
* Returns whether an object was validated in a specific validation group.
@@ -177,7 +179,7 @@ public function isGroupValidated(string $cacheKey, string $groupHash): bool;
177
179
* @internal Used by the validator engine. Should not be called by user
178
180
* code.
179
181
*/
180
- public function markConstraintAsValidated (string $ cacheKey , string $ constraintHash );
182
+ public function markConstraintAsValidated (string $ cacheKey , string $ constraintHash ): void ;
181
183
182
184
/**
183
185
* Returns whether a constraint was validated for an object.
@@ -199,7 +201,7 @@ public function isConstraintValidated(string $cacheKey, string $constraintHash):
199
201
*
200
202
* @see ObjectInitializerInterface
201
203
*/
202
- public function markObjectAsInitialized (string $ cacheKey );
204
+ public function markObjectAsInitialized (string $ cacheKey ): void ;
203
205
204
206
/**
205
207
* Returns whether an object was initialized.
0 commit comments