From 5418f1e29b1682b0922d68db702114b17bbad4f8 Mon Sep 17 00:00:00 2001 From: Boss Date: Wed, 5 Apr 2023 14:07:17 +0200 Subject: [PATCH] [FIX] initilisaed Option validator The Option validator required to be initialised before being inegrated. --- src/Option.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Option.php b/src/Option.php index 89d01d3..4d36fcc 100644 --- a/src/Option.php +++ b/src/Option.php @@ -35,6 +35,7 @@ final class Option public function __construct(string $name) { $this->name = $name; + $this->validator = null; } public function getName(): string @@ -81,4 +82,4 @@ public function isValid($value): bool } return true; } -} \ No newline at end of file +}