Skip to content

Commit

Permalink
Store null cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Sep 9, 2020
1 parent e7fb659 commit ada8c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cookie/ContextCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function _setRawValue(string $value)
*/
public function store()
{
$this->getContext()->cookies()->store($this->name(), $this->_getRawValue(), $this->ttl());
$this->getContext()->cookies()->store($this->name(), $this->_getRawValue() ?? '', $this->ttl());
return $this;
}

Expand Down

0 comments on commit ada8c62

Please sign in to comment.