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.
filter()
1 parent 6009b8f commit 647e9d0Copy full SHA for 647e9d0
components/http_foundation.rst
@@ -158,6 +158,13 @@ has some methods to filter the input values:
158
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
159
Filters the parameter by using the PHP :phpfunction:`filter_var` function.
160
161
+ .. deprecated:: 6.3
162
+
163
+ Ignoring invalid values when using ``filter()`` is deprecated and will throw
164
+ a :class:`Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException`
165
+ in Symfony 7.0. You can use the ``FILTER_NULL_ON_FAILURE`` flag to keep
166
+ ignoring them.
167
168
All getters take up to two arguments: the first one is the parameter name
169
and the second one is the default value to return if the parameter does not
170
exist::
0 commit comments