Skip to content

Commit

Permalink
[1.x] Fix passing null to cookie for domain (#478)
Browse files Browse the repository at this point in the history
* Throw deprecations

* Fix null deprecation
  • Loading branch information
driesvints authored Feb 14, 2022
1 parent 1b2d5f5 commit 9d5c8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, ${{ matrix.driver }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none

Expand Down
4 changes: 2 additions & 2 deletions src/Swoole/SwooleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ public function sendResponseHeaders(Response $response, SwooleResponse $swooleRe
$cookie->getValue(),
$cookie->getExpiresTime(),
$cookie->getPath(),
$cookie->getDomain(),
$cookie->getDomain() ?? '',
$cookie->isSecure(),
$cookie->isHttpOnly(),
$cookie->getSameSite()
$cookie->getSameSite(),
);
}
}
Expand Down

0 comments on commit 9d5c8bb

Please sign in to comment.