From 2d17c020b6695d47debda065804db4e2d2f92e55 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 15 May 2024 08:57:58 +0200 Subject: PHPStan 1.11 + minor update dev dependencies (#6459) * PHPStan 1.11 + minor update dev dependencies https://github.com/phpstan/phpstan/releases/tag/1.11.0 * Comment style --- lib/http-conditional.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/http-conditional.php') diff --git a/lib/http-conditional.php b/lib/http-conditional.php index 2ed597a71..f683d4fbf 100644 --- a/lib/http-conditional.php +++ b/lib/http-conditional.php @@ -107,13 +107,13 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr } $etagServer = '"' . md5($scriptName . $myQuery . '#' . $dateLastModif) . '"'; - // @phpstan-ignore-next-line + // @phpstan-ignore booleanNot.alwaysTrue if ((!$is412) && isset($_SERVER['HTTP_IF_MATCH'])) { //rfc2616-sec14.html#sec14.24 $etagsClient = stripslashes($_SERVER['HTTP_IF_MATCH']); $etagsClient = str_ireplace('-gzip', '', $etagsClient); $is412 = (($etagsClient !== '*') && (strpos($etagsClient, $etagServer) === false)); } - // @phpstan-ignore-next-line + // @phpstan-ignore booleanAnd.leftAlwaysTrue if ($is304 && isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) { //rfc2616-sec14.html#sec14.25 //rfc1945.txt $nbCond++; $dateCacheClient = $_SERVER['HTTP_IF_MODIFIED_SINCE']; -- cgit v1.2.3