[Validator] Fix return types

This commit is contained in:
Alexander M. Turek 2021-03-03 23:49:57 +01:00
parent ea741e6165
commit e67ef5bbff
1 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
* *
* Constraint instances are immutable and serializable. * 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 <bschussek@gmail.com> * @author Bernhard Schussek <bschussek@gmail.com>
*/ */
@ -246,7 +246,7 @@ abstract class Constraint
* *
* Override this method if you want to define required options. * Override this method if you want to define required options.
* *
* @return array * @return string[]
* *
* @see __construct() * @see __construct()
*/ */
@ -276,7 +276,7 @@ abstract class Constraint
* This method should return one or more of the constants * This method should return one or more of the constants
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT. * 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() public function getTargets()
{ {