diff options
| author | 2024-05-15 08:57:58 +0200 | |
|---|---|---|
| committer | 2024-05-15 08:57:58 +0200 | |
| commit | 2d17c020b6695d47debda065804db4e2d2f92e55 (patch) | |
| tree | 4e03d16b1f59eabe347b8a89a7f375646269e13a /lib/http-conditional.php | |
| parent | f958eaef2f733553132c4880f9e2e56003476545 (diff) | |
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
Diffstat (limited to 'lib/http-conditional.php')
| -rw-r--r-- | lib/http-conditional.php | 4 |
1 files changed, 2 insertions, 2 deletions
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']; |
