Skip to content

Commit 5ac13cb

Browse files
committed
feature #18094 [HttpFoundation] Add ParameterBag::getString() (alexandre-daubois)
This PR was merged into the 6.3 branch. Discussion ---------- [HttpFoundation] Add `ParameterBag::getString()` Fixes #18089 Commits ------- 7b1160c [HttpFoundation] Add `ParameterBag::getString()`
2 parents bc0737b + 7b1160c commit 5ac13cb

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)