Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit d994695

Browse files
committed
Add nullable types of isTrue construct params
1 parent c35dd45 commit d994695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validator/Constraints/IsTrue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class IsTrue extends Constraint
1515

1616
public $invalidHostMessage = 'The captcha was not resolved on the right domain.';
1717

18-
public function __construct(array $options = null, string $message = null, string $invalidHostMessage = null, array $groups = null, $payload = null)
18+
public function __construct(?array $options = null, ?string $message = null, ?string $invalidHostMessage = null, ?array $groups = null, mixed $payload = null)
1919
{
2020
parent::__construct($options ?? [], $groups, $payload);
2121

0 commit comments

Comments
 (0)