Skip to content

Commit ae046a0

Browse files
committed
bug #6907 fix wrong variable name in OptionsResolver example (dincho)
This PR was merged into the 2.7 branch. Discussion ---------- fix wrong variable name in OptionsResolver example Commits ------- 82f052a fix wrong variable name in OptionsResolver example
2 parents b19f1dc + 82f052a commit ae046a0

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy