Skip to content

Commit

Permalink
Fix type hint for Request class (#31826)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints authored Mar 7, 2020
1 parent 2579730 commit 1c4e04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public function replace(array $input)
* @param mixed $default
* @return mixed
*/
public function get($key, $default = null)
public function get(string $key, $default = null)
{
return parent::get($key, $default);
}
Expand Down

0 comments on commit 1c4e04d

Please sign in to comment.