diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php index 98bd4b116d474..5fd8ce84c0643 100644 --- a/src/Symfony/Component/Validator/Constraint.php +++ b/src/Symfony/Component/Validator/Constraint.php @@ -278,10 +278,7 @@ public function validatedBy(): string * Returns whether the constraint can be put onto classes, properties or * both. * - * This method should return one or more of the constants - * Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT. - * - * @return string|string[] One or more constant values + * @return self::CLASS_CONSTRAINT|self::PROPERTY_CONSTRAINT|array */ public function getTargets(): string|array {