From f67bf53bdd0439adc67fd2c713c1bf082f425ee1 Mon Sep 17 00:00:00 2001 From: Mrtn Schndlr Date: Sat, 7 Dec 2024 16:23:46 +0100 Subject: [PATCH] Update ZipCode.php --- src/ZipCodeValidator/Constraints/ZipCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZipCodeValidator/Constraints/ZipCode.php b/src/ZipCodeValidator/Constraints/ZipCode.php index 5edeb2e..32af26a 100644 --- a/src/ZipCodeValidator/Constraints/ZipCode.php +++ b/src/ZipCodeValidator/Constraints/ZipCode.php @@ -20,7 +20,7 @@ class ZipCode extends Constraint public bool $strict = true; public bool $caseSensitiveCheck = true; - public function __construct(mixed $options = null, array $groups = null, mixed $payload = null) + public function __construct(mixed $options = null, array $groups = [], mixed $payload = null) { if (is_string($options)) { $options = array(