Skip to content

Commit 95cea71

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [OptionsResolver] Add note about deprecated options
2 parents 8a39c81 + 77a021c commit 95cea71

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/options_resolver.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,13 @@ method::
743743
somewhere, either its value is provided by the user or the option is evaluated
744744
within closures of lazy options and normalizers.
745745

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+
746753
Instead of passing the message, you may also pass a closure which returns
747754
a string (the deprecation message) or an empty string to ignore the deprecation.
748755
This closure is useful to only deprecate some of the allowed types or values of

0 commit comments

Comments
 (0)