8000 minor #29111 [HttpFoundation] Fixed PHP doc of ParameterBag::getBoole… · symfony/symfony@def89e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit def89e2

Browse files
minor #29111 [HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean (lyrixx)
This PR was merged into the 2.8 branch. Discussion ---------- [HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | --- Since the method should return a bool, then the default value should be a bool too Commits ------- 1fa5a9a [HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean
2 parents 613ace6 + 1fa5a9a commit def89e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/ParameterBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function getInt($key, $default = 0, $deep = false)
231231
* Returns the parameter value converted to boolean.
232232
*
233233
* @param string $key The parameter key
234-
* @param mixed $default The default value if the parameter key does not exist
234+
* @param bool $default The default value if the parameter key does not exist
235235
* @param bool $deep If true, a path like foo[bar] will find deeper items
236236
*
237237
* @return bool The filtered value

0 commit comments

Comments
 (0)
0