diff --git a/src/Validator/Constraints/IdentityNumber.php b/src/Validator/Constraints/IdentityNumber.php index 8bf10ff..bb2f675 100644 --- a/src/Validator/Constraints/IdentityNumber.php +++ b/src/Validator/Constraints/IdentityNumber.php @@ -21,6 +21,8 @@ public function __construct(?string $message = null, ?string $messageWithCoordin $this->messageWithCoordinationNumber = $messageWithCoordinationNumber ?? $this->messageWithCoordinationNumber; $this->allowCoordinationNumber = $allowCoordinationNumber ?? $this->allowCoordinationNumber; $this->strict = $strict ?? $this->strict; + + parent::__construct(); } public function validatedBy(): string diff --git a/src/Validator/Constraints/OrganizationNumber.php b/src/Validator/Constraints/OrganizationNumber.php index 7fd7d54..87cc753 100644 --- a/src/Validator/Constraints/OrganizationNumber.php +++ b/src/Validator/Constraints/OrganizationNumber.php @@ -21,6 +21,8 @@ public function __construct(?string $message = null, ?bool $strict = null, ?bool $this->strict = $strict ?? $this->strict; $this->allowPersonalIdNumber = $allowPersonalIdNumber ?? $this->allowPersonalIdNumber; $this->allowCoordinationNumber = $allowCoordinationNumber ?? $this->allowCoordinationNumber; + + parent::__construct(); } public function validatedBy(): string