diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d4202baec..599a56814 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/src/Swoole/SwooleClient.php b/src/Swoole/SwooleClient.php index ab52e09a2..b6250439f 100644 --- a/src/Swoole/SwooleClient.php +++ b/src/Swoole/SwooleClient.php @@ -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(), ); } }