Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 530e8c4

Browse files
committed
minor #6278 [HttpFoundation] Fix typo for ParameterBag getters (rendler-denis)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #6278). Discussion ---------- [HttpFoundation] Fix typo for ParameterBag getters [HttpFoundation] Fix typo for max number of arguments for ParameterBag getters | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7 | Fixed tickets | ~ Commits ------- 9a06dab [HttpFoundation] Fix typo for ParameterBag getters
2 parents 01d61d6 + 9a06dab commit 530e8c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

components/http_foundation/introduction.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ has some methods to filter the input values:
134134
:method:`Symfony\\Component\\HttpFoundation\\ParameterBag::filter`
135135
Filters the parameter by using the PHP :phpfunction:`filter_var` function.
136136

137-
All getters takes up to three arguments: the first one is the parameter name
138-
and the second one is the default value to return if the parameter does not
137+
All getters take up to three arguments: the first one is the parameter name and
138+
the second one is the default value to return if the parameter does not
139139
exist::
140140

141141
// the query string is '?foo=bar'
@@ -148,6 +148,7 @@ exist::
148148

149149
$request->query->get('bar', 'bar');
150150
// returns 'bar'
151+
151152

152153
When PHP imports the request query, it handles request parameters like
153154
``foo[bar]=bar`` in a special way as it creates an array. So you can get the

0 commit comments

Comments
 (0)