Fix the validation of default values for Predis\Options\Option class.

This commit is contained in:
Daniele Alessandri
2011-03-02 17:44:10 +01:00
parent 1e1a904d1a
commit eba7f84335
+1 -1
View File
@@ -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());
}
}