From e67ef5bbfff768733f299f24f908ac9486a56fb3 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 3 Mar 2021 23:49:57 +0100 Subject: [PATCH] [Validator] Fix return types --- src/Symfony/Component/Validator/Constraint.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Validator/Constraint.php b/src/Symfony/Component/Validator/Constraint.php index 7cd3a68b86..2683c68360 100644 --- a/src/Symfony/Component/Validator/Constraint.php +++ b/src/Symfony/Component/Validator/Constraint.php @@ -25,7 +25,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException; * * Constraint instances are immutable and serializable. * - * @property array $groups The groups that the constraint belongs to + * @property string[] $groups The groups that the constraint belongs to * * @author Bernhard Schussek */ @@ -246,7 +246,7 @@ abstract class Constraint * * Override this method if you want to define required options. * - * @return array + * @return string[] * * @see __construct() */ @@ -276,7 +276,7 @@ abstract class Constraint * This method should return one or more of the constants * Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT. * - * @return string|array One or more constant values + * @return string|string[] One or more constant values */ public function getTargets() {