Skip to content

Commit 6b60f6e

Browse files
authored
Merge pull request #11 from bim-g/bim-g-patch-1
[FIX] initialization of the Option validator
2 parents 3bce1f7 + 5418f1e commit 6b60f6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Option.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ final class Option
3535
public function __construct(string $name)
3636
{
3737
$this->name = $name;
38+
$this->validator = null;
3839
}
3940

4041
public function getName(): string
@@ -81,4 +82,4 @@ public function isValid($value): bool
8182
}
8283
return true;
8384
}
84-
}
85+
}

0 commit comments

Comments
 (0)