8000 GH-50526: Reverting ExecutionContextInterface void return types in fa… · symfony/symfony@3de6034 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3de6034

Browse files
upchukxabbuh
authored andcommitted
GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations.
1 parent 31d2b01 commit 3de6034

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
@@ -123,29 +123,37 @@ 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.
@@ -162,8 +170,10 @@ public function isGroupValidated(string $cacheKey, string $groupHash): bool;
162170
*
163171
* @param string $cacheKey The hash of the object
164172
* @param string $constraintHash The hash of the constraint
173+
*
174+
* @return void
165175
*/
166-
public function markConstraintAsValidated(string $cacheKey, string $constraintHash): void;
176+
public function markConstraintAsValidated(string $cacheKey, string $constraintHash);
167177

168178
/**
169179
* Warning: Should not be called by user code, to be used by the validator engine only.

0 commit comments

Comments
 (0)
0