Skip to content

Commit a239021

Browse files
Upgrade the versions of phpstan and rector.
Co-authored-by: 李铭昕 <715557344@qq.com>
1 parent d188a48 commit a239021

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Cookie/SetCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function matchesDomain(string $domain): bool
357357
return false;
358358
}
359359

360-
return (bool) preg_match('/\.' . preg_quote($cookieDomain) . '$/', $domain);
360+
return (bool) preg_match('/\.' . preg_quote($cookieDomain, '/') . '$/', $domain);
361361
}
362362

363363
/**

src/Server/Chunk/HasChunk.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ trait HasChunk
1818
{
1919
public function write(string $content): bool
2020
{
21+
// @phpstan-ignore instanceof.alwaysTrue
2122
if (isset($this->connection) && $this->connection instanceof Writable) {
2223
return $this->connection->write($content);
2324
}

0 commit comments

Comments
 (0)