mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-16 04:17:12 -04:00
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
This commit is contained in:
committed by
GitHub
parent
f958eaef2f
commit
2d17c020b6
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user