From df0f84e959ac0ac90566e67f84a3002c90a06d54 Mon Sep 17 00:00:00 2001 From: VeeeneX Date: Sat, 25 Jul 2015 22:54:58 +0200 Subject: [PATCH] Added string scallar --- src/Http/Cookie.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Http/Cookie.php b/src/Http/Cookie.php index d0726cd..3ce11c5 100644 --- a/src/Http/Cookie.php +++ b/src/Http/Cookie.php @@ -12,7 +12,7 @@ class Cookie implements CookieInterface public $secure; public $httpOnly; public $raw = true; - + public function __construct($domain = null, $path = "/", $expire = 0, $secure = false, $httpOnly = true) { $this->domain = (string) $domain; @@ -43,9 +43,9 @@ public function setValue($value = null) public function getValue() { if ($this->raw) { - return $this->value; + return (string) $this->value; } else { - return unserialize($this->value); + return (string) unserialize($this->value); } }