Skip to content

Commit 0e346f7

Browse files
committed
minor #15723 [OptionsResolver] Fix code sample for chaining (wouterj, JakeFr)
This PR was merged into the 5.3 branch. Discussion ---------- [OptionsResolver] Fix code sample for chaining OptionConfigurator::allowedValues is a variadic function. Commits ------- 895b840 Update notifier.rst 65a32a6 [OptionsResolver] Fix code sample for chaining
2 parents 22f690d + 895b840 commit 0e346f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/options_resolver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ method::
883883
$resolver->define('transport')
884884
->required()
885885
->default('transport')
886-
->allowedValues(['sendmail', 'mail', 'smtp']);
886+
->allowedValues('sendmail', 'mail', 'smtp');
887887
}
888888
}
889889

notifier.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ sent using the Slack transport::
529529
->content('You got a new invoice for 15 EUR.')
530530
->importance(Notification::IMPORTANCE_HIGH);
531531

532-
$notifier->send($notification, new Recipient('wouter@example.com'));
532+
$notifier->send($notification, new Recipient('wouter@wouterj.nl'));
533533

534534
// ...
535535
}

0 commit comments

Comments
 (0)