@@ -427,6 +427,8 @@ that, you can write normalizers. Normalizers are executed after validating an
427427option. You can configure a normalizer by calling
428428:method: `Symfony\\ Component\\ OptionsResolver\\ OptionsResolver::setNormalizer `::
429429
430+ use Symfony\Component\OptionsResolver\Options;
431+
430432 // ...
431433 class Mailer
432434 {
@@ -436,7 +438,7 @@ option. You can configure a normalizer by calling
436438 {
437439 // ...
438440
439- $resolver->setNormalizer('host', function ($options, $value) {
441+ $resolver->setNormalizer('host', function (Options $options, $value) {
440442 if ('http://' !== substr($value, 0, 7)) {
441443 $value = 'http://'.$value;
442444 }
@@ -462,7 +464,7 @@ if you need to use other options during normalization::
462464 public function configureOptions(OptionsResolver $resolver)
463465 {
464466 // ...
465- $resolver->setNormalizer('host', function ($options, $value) {
467+ $resolver->setNormalizer('host', function (Options $options, $value) {
466468 if (!in_array(substr($value, 0, 7), array('http://', 'https://'))) {
467469 if ('ssl' === $options['encryption']) {
468470 $value = 'https://'.$value;
0 commit comments