From 5492bf4588f005833b760c8abe9b353d3aa43190 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 8 Oct 2024 13:36:14 +0200 Subject: [PATCH] [Validator] Enhance PHPDoc on `Constraint::getTargets()` --- src/Symfony/Component/Validator/Constraint.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {