소스 검색

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