From 664f37ae71eba123a5ee5b1ad3f4a54329b8f484 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sat, 4 Oct 2025 21:20:32 +0000 Subject: Appeasing PHPStan. The two if statements involved are related to calls to 'tt-rss.org' that are intentionally disabled. --- classes/Pref_Prefs.php | 1 + classes/RPC.php | 1 + 2 files changed, 2 insertions(+) (limited to 'classes') diff --git a/classes/Pref_Prefs.php b/classes/Pref_Prefs.php index 2697ed6e9..c50e61016 100644 --- a/classes/Pref_Prefs.php +++ b/classes/Pref_Prefs.php @@ -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; } diff --git a/classes/RPC.php b/classes/RPC.php index d5588cc57..2634d4b2e 100644 --- a/classes/RPC.php +++ b/classes/RPC.php @@ -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); -- cgit v1.2.3-54-g00ecf