Explorar o código

[doc] Fix code snippet used for client options.

Daniele Alessandri %!s(int64=12) %!d(string=hai) anos
pai
achega
e4295ad650
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {