We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents efc3bb2 + d87b719 commit 77a021cCopy full SHA for 77a021c
components/options_resolver.rst
@@ -743,6 +743,13 @@ method::
743
somewhere, either its value is provided by the user or the option is evaluated
744
within closures of lazy options and normalizers.
745
746
+.. note::
747
+
748
+ When using an option deprecated by you in your own library, you can pass
749
+ ``false`` as the second argument of the
750
+ :method:`Symfony\\Component\\OptionsResolver\\Options::offsetGet()` method
751
+ to not trigger the deprecation warning.
752
753
Instead of passing the message, you may also pass a closure which returns
754
a string (the deprecation message) or an empty string to ignore the deprecation.
755
This closure is useful to only deprecate some of the allowed types or values of
0 commit comments