mirror of
https://github.com/predis/predis.git
synced 2026-08-25 08:49:40 +00:00
Change how parameters are handled internally.
This commit is contained in:
@@ -16,7 +16,9 @@ class CustomOption extends Option {
|
||||
}
|
||||
|
||||
public function validate($value) {
|
||||
return call_user_func($this->_validate, $value);
|
||||
if (isset($value)) {
|
||||
return call_user_func($this->_validate, $value);
|
||||
}
|
||||
}
|
||||
|
||||
public function getDefault() {
|
||||
|
||||
Reference in New Issue
Block a user