From 82f052a46dc072abf8291f26393f35ba6e9b4a38 Mon Sep 17 00:00:00 2001 From: Dincho Todorov Date: Tue, 23 Aug 2016 10:52:30 +0300 Subject: [PATCH] fix wrong variable name in OptionsResolver example --- components/options_resolver.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/options_resolver.rst b/components/options_resolver.rst index 212b993d6bd..acc7fd55581 100644 --- a/components/options_resolver.rst +++ b/components/options_resolver.rst @@ -542,7 +542,7 @@ the closure:: { parent::configureOptions($resolver); - $options->setDefault('host', function (Options $options, $previousValue) { + $resolver->setDefault('host', function (Options $options, $previousValue) { if ('ssl' === $options['encryption']) { return 'secure.example.org' }