Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 07d8cf2

Browse files
committed
Fixed array to string conversion
1 parent 4141d0e commit 07d8cf2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Http/Cookie.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public function setValue($value = null)
4343
public function getValue()
4444
{
4545
if ($this->raw) {
46-
return (string) $this->value;
46+
return $this->value;
4747
} else {
48-
return (string) unserialize($this->value);
48+
return unserialize($this->value);
4949
}
5050
}
5151

src/Http/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function send()
199199
foreach ($this->cookies as $Cookie) {
200200
setcookie(
201201
$Cookie->name,
202-
$Cookie->getValue(),
202+
$Cookie->value,
203203
$Cookie->expire,
204204
$Cookie->path,
205205
$Cookie->domain,

0 commit comments

Comments
 (0)