10000 fix: Add array to return of InputBag::get by shyim · Pull Request #41766 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

fix: Add array to return of InputBag::get #41766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Add array to return of InputBag::get
  • Loading branch information
shyim authored Jun 21, 2021
commit ce246db14c3082fc913fc8cd21a174b5dc3dc579
4 changes: 2 additions & 2 deletions src/Symfony/Component/HttpFoundation/InputBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ final class InputBag extends ParameterBag
/**
* Returns a scalar input value by name.
*
* @param string|int|float|bool|null $default The default value if the input key does not exist
* @param string|int|float|bool|array|null $default The default value if the input key does not exist
*
* @return string|int|float|bool|null
* @return string|int|float|bool|array|null
*/
public function get(string $key, $default = null)
{
Expand Down
0