diff --git a/src/Http/Cookie.php b/src/Http/Cookie.php index 348bab6..10b106f 100644 --- a/src/Http/Cookie.php +++ b/src/Http/Cookie.php @@ -43,9 +43,9 @@ public function setValue($value = null) public function getValue() { if ($this->raw) { - return (string) $this->value; + return $this->value; } else { - return (string) unserialize($this->value); + return unserialize($this->value); } } diff --git a/src/Http/Response.php b/src/Http/Response.php index 9984aaa..8050f05 100644 --- a/src/Http/Response.php +++ b/src/Http/Response.php @@ -199,7 +199,7 @@ public function send() foreach ($this->cookies as $Cookie) { setcookie( $Cookie->name, - $Cookie->getValue(), + $Cookie->value, $Cookie->expire, $Cookie->path, $Cookie->domain,