From 3320f0646504f2a07d615b07bfb127dc0e4efaf8 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sun, 6 Aug 2023 16:35:01 +0200 Subject: [PATCH] Fix CS --- Validator/Constraints/Unique.php | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Validator/Constraints/Unique.php b/Validator/Constraints/Unique.php index 6fffd7a0..81fa0ad6 100644 --- a/Validator/Constraints/Unique.php +++ b/Validator/Constraints/Unique.php @@ -17,19 +17,20 @@ class Unique extends UniqueEntity { /** - * @param array|string $fields The combination of fields that must contain unique values or a set of options - * @param bool|array|string $ignoreNull The combination of fields that ignore null values + * @param string[]|string $fields The combination of fields that must contain unique values or a set of options + * @param bool|string[]|string $ignoreNull The combination of fields that ignore null values + * @param mixed $payload */ public function __construct( $fields, - string $message = null, + ?string $message = null, string $service = 'doctrine_odm.mongodb.unique', - string $em = null, - string $entityClass = null, - string $repositoryMethod = null, - string $errorPath = null, - bool|string|array $ignoreNull = null, - array $groups = null, + ?string $em = null, + ?string $entityClass = null, + ?string $repositoryMethod = null, + ?string $errorPath = null, + $ignoreNull = null, + ?array $groups = null, $payload = null, array $options = [] ) { @@ -44,7 +45,7 @@ public function __construct( $ignoreNull, $groups, $payload, - $options + $options, ); } }