浏览代码

[doc] Fix code snippet used for client options.

Daniele Alessandri 12 年之前
父节点
当前提交
e4295ad650
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/client.rst

+ 1 - 1
doc/client.rst

@@ -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) {