diff --git a/lib/Predis/Client.php b/lib/Predis/Client.php index 4ba8af64..10fcc0fb 100644 --- a/lib/Predis/Client.php +++ b/lib/Predis/Client.php @@ -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"); }