From d994695fc321f517e6df930b78598abad657f6e5 Mon Sep 17 00:00:00 2001 From: Romain Guyon Date: Tue, 28 Jan 2025 09:00:17 +0000 Subject: [PATCH] Add nullable types of isTrue construct params --- src/Validator/Constraints/IsTrue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Constraints/IsTrue.php b/src/Validator/Constraints/IsTrue.php index 38e4909..0fc13eb 100644 --- a/src/Validator/Constraints/IsTrue.php +++ b/src/Validator/Constraints/IsTrue.php @@ -15,7 +15,7 @@ class IsTrue extends Constraint public $invalidHostMessage = 'The captcha was not resolved on the right domain.'; - public function __construct(array $options = null, string $message = null, string $invalidHostMessage = null, array $groups = null, $payload = null) + public function __construct(?array $options = null, ?string $message = null, ?string $invalidHostMessage = null, ?array $groups = null, mixed $payload = null) { parent::__construct($options ?? [], $groups, $payload);