From 07d8cf23f2012f0f7fed81e903262ba2ff4f00ed Mon Sep 17 00:00:00 2001 From: VeeeneX Date: Sat, 25 Jul 2015 23:34:21 +0200 Subject: [PATCH] Fixed array to string conversion --- src/Http/Cookie.php | 4 ++-- src/Http/Response.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,