Skip to content

Commit 97796bc

Browse files
committed
Fix psalm
1 parent e1a8272 commit 97796bc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Cookie.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ private function setValue(string $value): void
370370
/**
371371
* @param mixed $expire
372372
* @throws InvalidArgumentException if the expire time is not valid.
373+
* @psalm-suppress RiskyTruthyFalsyComparison
373374
*/
374375
private function setExpires($expire): void
375376
{
@@ -405,6 +406,7 @@ private function setExpires($expire): void
405406

406407
/**
407408
* @param string|null $domain
409+
* @psalm-suppress RiskyTruthyFalsyComparison
408410
*/
409411
private function setDomain(?string $domain): void
410412
{
@@ -413,6 +415,7 @@ private function setDomain(?string $domain): void
413415

414416
/**
415417
* @param string|null $path
418+
* @psalm-suppress RiskyTruthyFalsyComparison
416419
*/
417420
private function setPath(?string $path): void
418421
{
@@ -438,6 +441,7 @@ private function setHttpOnly(?bool $httpOnly): void
438441
/**
439442
* @param string|null $sameSite
440443
* @throws InvalidArgumentException if the sameSite is not valid.
444+
* @psalm-suppress RiskyTruthyFalsyComparison
441445
*/
442446
private function setSameSite(?string $sameSite): void
443447
{

src/CookieCreator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ final class CookieCreator
3333
* @param string|null $sameSite whether the cookie will be available for cross-site requests.
3434
* @return CookieInterface
3535
* @throws InvalidArgumentException if one or more arguments are not valid.
36+
* @psalm-suppress RiskyTruthyFalsyComparison
3637
*/
3738
public static function create(
3839
string $name,

0 commit comments

Comments
 (0)