We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0023ea0 commit e0c7805Copy full SHA for e0c7805
1 file changed
src/Http/SetCookie.php
@@ -216,7 +216,7 @@ public function setPath(string $path): void
216
*/
217
public function getMaxAge(): ?int
218
{
219
- return $this->data['Max-Age'];
+ return $this->data['Max-Age'] == null ? null : (int) $this->data['Max-Age'];
220
}
221
222
/**
@@ -292,7 +292,7 @@ public function setDiscard(bool $discard): void
292
293
public function getHttpOnly(): bool
294
295
- return $this->data['HttpOnly'];
+ return (bool) $this->data['HttpOnly'];
296
297
298
0 commit comments