Appeasing PHPStan.

The two if statements involved are related to calls to 'tt-rss.org' that are intentionally disabled.
This commit is contained in:
supahgreg
2025-10-04 21:20:32 +00:00
parent 591ee81ad3
commit 664f37ae71
2 changed files with 2 additions and 0 deletions

View File

@@ -1302,6 +1302,7 @@ class Pref_Prefs extends Handler_Protected {
// $content = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true);
$content = false;
/** @phpstan-ignore if.alwaysFalse (intentionally disabling for now) */
if ($content) {
return $content;
}

View File

@@ -329,6 +329,7 @@ class RPC extends Handler_Protected {
// $content = @UrlHelper::fetch(["url" => "https://tt-rss.org/version.json"]);
$content = false;
/** @phpstan-ignore if.alwaysFalse (intentionally disabling for now) */
if ($content) {
$content = json_decode($content, true);