8000 bug #50540 [Validator] GH-50526: Reverting ExecutionContextInterface … · symfony/symfony@1cceec1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cceec1

Browse files
bug #50540 [Validator] GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations. (upchuk)
This PR was merged into the 6.3 branch. Discussion ---------- [Validator] GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations. | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #50526 | License | MIT | Doc PR | Commits ------- 7c7b0b2 GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations.
2 parents 31d2b01 + 7c7b0b2 commit 1cceec1

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

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

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,37 +123,44 @@ public function getObject(): ?object;
123123
*
124124
* @param object|null $object The currently validated object
125125
* @param string $propertyPath The property path to the current value
126+
*
127+
* @return void
126128
*/
127-
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath): void;
129+
public function setNode(mixed $value, ?object $object, MetadataInterface $metadata = null, string $propertyPath);
128130

129131
/**
130132
* Warning: Should not be called by user code, to be used by the validator engine only.
131133
*
132134
* @param string|null $group The validated group
135+
*
136+
* @return void
133137
*/
134-
public function setGroup(?string $group): void;
138+
public function setGroup(?string $group);
135139

136140
/**
137141
* Warning: Should not be called by user code, to be used by the validator engine only.
142+
*
143+
* @return void
138144
*/
139-
public function setConstraint(Constraint $constraint): void;
145+
public function setConstraint(Constraint $constraint);
140146

141147
/**
142148
* Warning: Should not be called by user code, to be used by the validator engine only.
143149
*
144150
* @param string $cacheKey The hash of the object
145151
* @param string $groupHash The group's name or hash, if it is group
146152
* sequence
153+
*
154+
* @return void
147155
*/
148-
public function markGroupAsValidated(string $cacheKey, string $groupHash): void;
156+
public function markGroupAsValidated(string $cacheKey, string $groupHash);
149157

150158
/**
151159
* Warning: Should not be called by user code, to be used by the validator engine only.
152160
*
153161
* @param string $cacheKey The hash of the object
154162
* @param string $groupHash The group's name or hash, if it is group
155163
* sequence
156-
*
157164
*/
158165
public function isGroupValidated(string $cacheKey, string $groupHash): bool;
159166

@@ -162,15 +169,16 @@ public function isGroupValidated(string $cacheKey, string $groupHash): bool;
162169
*
163170
* @param string $cacheKey The hash of the object
164171
* @param string $constraintHash The hash of the constraint
172+
*
173+
* @return void
165174
*/
166-
public function markConstraintAsValidated(string $cacheKey, string $constraintHash): void;
175+
public function markConstraintAsValidated(string $cacheKey, string $constraintHash);
167176

168177
/**
169178
* Warning: Should not be called by user code, to be used by the validator engine only.
170179
*
171180
* @param string $cacheKey The hash of the object
172181
* @param string $constraintHash The hash of the constraint
173-
*
174182
*/
175183
public function isConstraintValidated(string $cacheKey, string $constraintHash): bool;
176184

@@ -188,7 +196,6 @@ public function markObjectAsInitialized(string $cacheKey): void;
188196
*
189197
* @param string $cacheKey The hash of the object
190198
*
191-
*
192199
* @see ObjectInitializerInterface
193200
*/
194201
public function isObjectInitialized(string $cacheKey): bool;

0 commit comments

Comments
 (0)
0