8000 [HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean · JulienMaille/symfony@1fa5a9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 1fa5a9a

Browse files
committed
[HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean
Since the method should return a bool, then the default value should be a bool too
1 parent 613ace6 commit 1fa5a9a

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