mirror of
https://github.com/predis/predis.git
synced 2026-08-24 16:29:27 +00:00
Apply minor change.
This commit is contained in:
@@ -32,8 +32,7 @@ class Client {
|
||||
return new ClientOptions(array('profile' => $options));
|
||||
}
|
||||
if (is_string($options)) {
|
||||
$profile = ServerProfile::get($options);
|
||||
return new ClientOptions(array('profile' => $profile));
|
||||
return new ClientOptions(array('profile' => ServerProfile::get($options)));
|
||||
}
|
||||
throw new \InvalidArgumentException("Invalid type for client options");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user