Permalink
Browse files

[doc] Fix code snippet used for client options.

  • Loading branch information...
nrk committed Dec 19, 2012
1 parent 36671ad commit e4295ad650d4180383ba53d65f1e885db4ed549e
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/client.rst
View
@@ -156,7 +156,7 @@ Just like standard options, they are accessible from callable initializers::
'get' => Predis\Command\StringGet,
),
'profile' => function ($options, $option) {
- $profile = $option->getDefault();
+ $profile = $option->getDefault($options);
if (is_array($options->commands)) {
foreach ($options->commands as $command => $class) {

0 comments on commit e4295ad

Please sign in to comment.