Skip to content

[HttpFoundation] Add ParameterBag::getString() #18094

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/http_foundation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ has some methods to filter the input values:
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getEnum`
Returns the parameter value converted to a PHP enum;

:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getString`
Returns the parameter value as a string;

.. versionadded:: 6.3

The ``ParameterBag::getEnum()`` method was introduced in Symfony 6.3.
The ``ParameterBag::getEnum()`` and ``ParameterBag::getString()`` methods
were introduced in Symfony 6.3.

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