Skip to content

Commit c1728fa

Browse files
authored
Merge pull request #312 from chemoul/compat-php-8.4-types
Add nullable types on isTrue construct params
2 parents c35dd45 + d994695 commit c1728fa

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)