Skip to content

Commit 7b1160c

Browse files
[HttpFoundation] Add ParameterBag::getString()
1 parent dc7368b commit 7b1160c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/http_foundation.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,13 @@ has some methods to filter the input values:
147147
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getEnum`
148148
Returns the parameter value converted to a PHP enum;
149149

150+
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getString`
151+
Returns the parameter value as a string;
152+
150153
.. versionadded:: 6.3
151154

152-
The ``ParameterBag::getEnum()`` method was introduced in Symfony 6.3.
155+
The ``ParameterBag::getEnum()`` and ``ParameterBag::getString()`` methods
156+
were introduced in Symfony 6.3.
153157

154158
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
155159
Filters the parameter by using the PHP :phpfunction:`filter_var` function.

0 commit comments

Comments
 (0)