Skip to content

Commit 5c626ca

Browse files
committed
minor #17660 [HttpFoundation] add ParameterBag::getEnum() (nikophil)
This PR was merged into the 6.3 branch. Discussion ---------- [HttpFoundation] add ParameterBag::getEnum() fixes #17657 Commits ------- ba83fd2 [HttpFoundation] add ParameterBag::getEnum()
2 parents 3bdfc18 + ba83fd2 commit 5c626ca

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)