diff options
| author | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-04 21:20:32 +0000 |
|---|---|---|
| committer | supahgreg <supahgreg@users.noreply.github.com> | 2025-10-04 21:20:32 +0000 |
| commit | 664f37ae71eba123a5ee5b1ad3f4a54329b8f484 (patch) | |
| tree | 21a17b8606976e6998dd97f7f6ee1e746bc6f811 /classes | |
| parent | 591ee81ad3c658da7982b27a272408074fe5af15 (diff) | |
Appeasing PHPStan.
The two if statements involved are related to calls to 'tt-rss.org' that are intentionally disabled.
Diffstat (limited to 'classes')
| -rw-r--r-- | classes/Pref_Prefs.php | 1 | ||||
| -rw-r--r-- | classes/RPC.php | 1 |
2 files changed, 2 insertions, 0 deletions
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); |