We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Constraint::getTargets()
1 parent b61db2f commit 5492bf4Copy full SHA for 5492bf4
src/Symfony/Component/Validator/Constraint.php
@@ -278,10 +278,7 @@ public function validatedBy(): string
278
* Returns whether the constraint can be put onto classes, properties or
279
* both.
280
*
281
- * This method should return one or more of the constants
282
- * Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
283
- *
284
- * @return string|string[] One or more constant values
+ * @return self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT|array<self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT>
285
*/
286
public function getTargets(): string|array
287
{
0 commit comments