Skip to content

Commit

Permalink
Fixed array to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeeneX committed Jul 25, 2015
1 parent 4141d0e commit 07d8cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Http/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 07d8cf2

Please sign in to comment.