File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -654,6 +654,12 @@ method::
654
654
->setDeprecated('hostname', 'The option "hostname" is deprecated, use "host" instead.')
655
655
;
656
656
657
+ .. note ::
658
+
659
+ The deprecation message will be triggered only if the option is being used
660
+ somewhere, either its value is provided by the user or the option is evaluated
661
+ within closures of lazy options and normalizers.
662
+
657
663
Instead of passing the message, you may also pass a closure which returns
658
664
a string (the deprecation message) or an empty string to ignore the deprecation.
659
665
This closure is useful to only deprecate some of the allowed types or values of
@@ -677,6 +683,11 @@ the option::
677
683
})
678
684
;
679
685
686
+ .. note ::
687
+
688
+ Deprecation based on the value is triggered only when the option is provided
689
+ by the user.
690
+
680
691
This closure receives as argument the value of the option after validating it
681
692
and before normalizing it when the option is being resolved.
682
693
You can’t perform that action at this time.
0 commit comments