Skip to content

Commit

Permalink
Suppress psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Apr 3, 2024
1 parent 881cc33 commit fe6b4dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Cookie/CookieAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ public function toString(): string
$string .= '; Expires=' . \gmdate('D, j M Y G:i:s T', $this->expiry->getTimestamp());
}

/** @psalm-suppress RiskyTruthyFalsyComparison */
if ($this->maxAge) {
$string .= '; Max-Age=' . $this->maxAge;
}
Expand Down
1 change: 1 addition & 0 deletions src/Http2/Http2Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private static function logDebugFrame(
int $streamId,
int $frameLength
): bool {
/** @psalm-suppress RiskyTruthyFalsyComparison */
$env = \getenv("AMP_DEBUG_HTTP2_FRAMES") ?: "0";
if (match ($env) {
"0", "false", "off" => false,
Expand Down

0 comments on commit fe6b4dd

Please sign in to comment.