Skip to content

Commit

Permalink
Added string scallar
Browse files Browse the repository at this point in the history
  • Loading branch information
VeeeneX committed Jul 25, 2015
1 parent 401a180 commit df0f84e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Http/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit df0f84e

Please sign in to comment.