Skip to content

Commit

Permalink
Fixed cookie types
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Oct 29, 2020
1 parent 959767e commit 20568f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ public function getAccept(string $default = ''): string
* Method for querying HTTP cookie parameters. If $key is not found $default value will be returned.
*
* @param string $key
* @param mixed $default
* @return mixed
* @param string $default
* @return string
*/
public function getCookie(string $key, string $default = '')
public function getCookie(string $key, string $default = ''): string
{
return (isset($_COOKIE[$key])) ? $_COOKIE[$key] : $default;
}
Expand Down

0 comments on commit 20568f1

Please sign in to comment.