We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Constraint::getTargets()
1 parent b61db2f commit bc81173Copy full SHA for bc81173
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> One or more constant values
285
*/
286
public function getTargets(): string|array
287
{
0 commit comments