8000 fix wrong variable name in OptionsResolver example · jameshalsall/symfony-docs@82f052a · GitHub
[go: up one dir, main page]

Skip to content

Commit 82f052a

Browse files
authored
fix wrong variable name in OptionsResolver example
1 parent bb0d522 commit 82f052a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ the closure::
542542
{
543543
parent::configureOptions($resolver);
544544

545-
$options->setDefault('host', function (Options $options, $previousValue) {
545+
$resolver->setDefault('host', function (Options $options, $previousValue) {
546546
if ('ssl' === $options['encryption']) {
547547
return 'secure.example.org'
548548
}

0 commit comments

Comments
 (0)
0