mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Fix the validation of default values for Predis\Options\Option class.
This commit is contained in:
@@ -12,6 +12,6 @@ class Option implements IOption {
|
||||
}
|
||||
|
||||
public function __invoke($value) {
|
||||
return $this->validate($value ?: $this->getDefault());
|
||||
return $this->validate(isset($value) ? $value : $this->getDefault());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user