Skip to content

Commit b99c30b

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 0b6eb97 commit b99c30b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)