Skip to content

Commit

Permalink
Merge pull request #312 from chemoul/compat-php-8.4-types
Browse files Browse the repository at this point in the history
Add nullable types on isTrue construct params
  • Loading branch information
excelwebzone authored Feb 3, 2025
2 parents c35dd45 + d994695 commit c1728fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/Constraints/IsTrue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c1728fa

Please sign in to comment.