From 20568f1325b4e38a43ef422a00e2271d5695a561 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 29 Oct 2020 14:25:16 +0200 Subject: [PATCH] Fixed cookie types --- src/Request.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Request.php b/src/Request.php index 82275c10..543690a1 100755 --- a/src/Request.php +++ b/src/Request.php @@ -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; }