mirror of
https://github.com/predis/predis.git
synced 2026-10-10 13:57:22 +00:00
Change how parameters are handled internally.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Predis\Options;
|
||||
|
||||
class ClientIterableMultiBulk extends Option {
|
||||
public function validate($value) {
|
||||
return (bool) $value;
|
||||
}
|
||||
|
||||
public function getDefault() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Predis\Options;
|
||||
|
||||
class ClientThrowOnError extends Option {
|
||||
public function validate($value) {
|
||||
return (bool) $value;
|
||||
}
|
||||
|
||||
public function getDefault() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -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