Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c7b0b2

Browse filesBrowse files
upchukxabbuh
authored andcommitted
GH-50526: Reverting ExecutionContextInterface void return types in favor of docblock annotations.
1 parent 31d2b01 commit 7c7b0b2
Copy full SHA for 7c7b0b2

File tree

1 file changed

+15
-8
lines changed
Filter options

1 file changed

+15
-8
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Context/ExecutionContextInterface.php
+15-8Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.