Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3066c4f

Browse files
committed
GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations.
1 parent 9217c57 commit 3066c4f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

src/Symfony/Component/Validator/Context/ExecutionContextInterface.php

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,10 @@ public function getObject(): ?object;
126126
*
127127
* @internal Used by the validator engine. Should not be called by user
128128
* code.
129+
*
130+
* @return void
129131
*/
130-
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath): void;
132+
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath);
131133

132134
/**
133135
* Sets the currently validated group.
@@ -136,16 +138,20 @@ public function setNode(mixed $value, ?object $object, MetadataInterface $metada
136138
*
137139
* @internal Used by the validator engine. Should not be called by user
138140
* code.
141+
*
142+
* @return void
139143
*/
140-
public function setGroup(?string $group): void;
144+
public function setGroup(?string $group);
141145

142146
/**
143147
* Sets the currently validated constraint.
144148
*
145149
* @internal Used by the validator engine. Should not be called by user
146150
* code.
151+
*
152+
* @return void
147153
*/
148-
public function setConstraint(Constraint $constraint): void;
154+
public function setConstraint(Constraint $constraint);
149155

150156
/**
151157
* Marks an object as validated in a specific validation group.
@@ -156,8 +162,10 @@ public function setConstraint(Constraint $constraint): void;
156162
*
157163
* @internal Used by the validator engine. Should not be called by user
158164
* code.
165+
*
166+
* @return void
159167
*/
160-
public function markGroupAsValidated(string $cacheKey, string $groupHash): void;
168+
public function markGroupAsValidated(string $cacheKey, string $groupHash);
161169

162170
/**
163171
* Returns whether an object was validated in a specific validation group.
@@ -178,8 +186,10 @@ public function isGroupValidated(string $cacheKey, string $groupHash): bool;
178186
*
179187
* @internal Used by the validator engine. Should not be called by user
180188
* code.
189+
*
190+
* @return void
181191
*/
182-
public function markConstraintAsValidated(string $cacheKey, string $constraintHash): void;
192+
public function markConstraintAsValidated(string $cacheKey, string $constraintHash);
183193

184194
/**
185195
* Returns whether a constraint was validated for an object.

0 commit comments

Comments
 (0)