From f67bf53bdd0439adc67fd2c713c1bf082f425ee1 Mon Sep 17 00:00:00 2001 From: Mrtn Schndlr Date: Sat, 7 Dec 2024 16:23:46 +0100 Subject: [PATCH 1/2] 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( From e484f3904cb06a40a3d4e111dc646050528c3766 Mon Sep 17 00:00:00 2001 From: Mrtn Schndlr Date: Mon, 9 Dec 2024 10:30:20 +0100 Subject: [PATCH 2/2] 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 32af26a..258a418 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 = [], mixed $payload = null) + public function __construct(mixed $options = null, ?array $groups = null, mixed $payload = null) { if (is_string($options)) { $options = array(