Skip to content

Commit

Permalink
Merge pull request #11 from bim-g/bim-g-patch-1
Browse files Browse the repository at this point in the history
[FIX] initialization of the Option validator
  • Loading branch information
bim-g authored Apr 5, 2023
2 parents 3bce1f7 + 5418f1e commit 6b60f6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ final class Option
public function __construct(string $name)
{
$this->name = $name;
$this->validator = null;
}

public function getName(): string
Expand Down Expand Up @@ -81,4 +82,4 @@ public function isValid($value): bool
}
return true;
}
}
}

0 comments on commit 6b60f6e

Please sign in to comment.