Skip to content

Commit ba83fd2

Browse files
committed
[HttpFoundation] add ParameterBag::getEnum()
1 parent 3bdfc18 commit ba83fd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/http_foundation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,13 @@ has some methods to filter the input values:
144144
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getInt`
145145
Returns the parameter value converted to integer;
146146

147+
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::getEnum`
148+
Returns the parameter value converted to a PHP enum;
149+
150+
.. versionadded:: 6.3
151+
152+
The `ParameterBag::getEnum()` method was added in Symfony 6.3.
153+
147154
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
148155
Filters the parameter by using the PHP :phpfunction:`filter_var` function.
149156

0 commit comments

Comments
 (0)