Skip to content

Commit 972af60

Browse files
nit: drop deprecated argument
1 parent 190e5bb commit 972af60

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Validator/Constraints/VatNumber.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ class VatNumber extends Constraint
1717
public bool $checkExistence = true;
1818
public bool $violateOnException = false;
1919

20-
public function __construct(?array $options = null, ?string $message = null, ?array $groups = null, mixed $payload = null, ?bool $checkExistence = null, ?bool $violateOnException = null)
20+
public function __construct(?string $message = null, ?array $groups = null, mixed $payload = null, ?bool $checkExistence = null, ?bool $violateOnException = null)
2121
{
22-
if (null !== $options) {
23-
throw new InvalidArgumentException(\sprintf('Passing an array of options to configure the "%s" constraint is no longer supported.', static::class));
24-
}
25-
2622
parent::__construct(null, $groups, $payload);
2723

2824
$this->message = $message ?? $this->message;

0 commit comments

Comments
 (0)