We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d188a48 commit a239021Copy full SHA for a239021
src/Cookie/SetCookie.php
@@ -357,7 +357,7 @@ public function matchesDomain(string $domain): bool
357
return false;
358
}
359
360
- return (bool) preg_match('/\.' . preg_quote($cookieDomain) . '$/', $domain);
+ return (bool) preg_match('/\.' . preg_quote($cookieDomain, '/') . '$/', $domain);
361
362
363
/**
src/Server/Chunk/HasChunk.php
@@ -18,6 +18,7 @@ trait HasChunk
18
{
19
public function write(string $content): bool
20
21
+ // @phpstan-ignore instanceof.alwaysTrue
22
if (isset($this->connection) && $this->connection instanceof Writable) {
23
return $this->connection->write($content);
24
0 commit comments