mirror of
https://github.com/predis/predis.git
synced 2026-09-15 04:47:01 +00:00
Do not validate default option values, assume that default values are correct.
This commit is contained in:
@@ -12,6 +12,6 @@ class Option implements IOption {
|
||||
}
|
||||
|
||||
public function __invoke($value) {
|
||||
return $this->validate(isset($value) ? $value : $this->getDefault());
|
||||
return isset($value) ? $this->validate($value) : $this->getDefault();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user