mirror of
https://github.com/predis/predis.git
synced 2026-09-02 21:57:15 +00:00
Change type check order for client options.
This commit is contained in:
@@ -28,12 +28,12 @@ class Client {
|
||||
if ($options === null) {
|
||||
return new ClientOptions();
|
||||
}
|
||||
if ($options instanceof ClientOptions) {
|
||||
return $options;
|
||||
}
|
||||
if (is_array($options)) {
|
||||
return new ClientOptions($options);
|
||||
}
|
||||
if ($options instanceof ClientOptions) {
|
||||
return $options;
|
||||
}
|
||||
if ($options instanceof IServerProfile) {
|
||||
return new ClientOptions(array('profile' => $options));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user