Appeasing PHPStan.
The two if statements involved are related to calls to 'tt-rss.org' that are intentionally disabled.
This commit is contained in:
@@ -1302,6 +1302,7 @@ class Pref_Prefs extends Handler_Protected {
|
|||||||
// $content = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true);
|
// $content = json_decode(UrlHelper::fetch(['url' => 'https://tt-rss.org/plugins.json']), true);
|
||||||
$content = false;
|
$content = false;
|
||||||
|
|
||||||
|
/** @phpstan-ignore if.alwaysFalse (intentionally disabling for now) */
|
||||||
if ($content) {
|
if ($content) {
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -329,6 +329,7 @@ class RPC extends Handler_Protected {
|
|||||||
// $content = @UrlHelper::fetch(["url" => "https://tt-rss.org/version.json"]);
|
// $content = @UrlHelper::fetch(["url" => "https://tt-rss.org/version.json"]);
|
||||||
$content = false;
|
$content = false;
|
||||||
|
|
||||||
|
/** @phpstan-ignore if.alwaysFalse (intentionally disabling for now) */
|
||||||
if ($content) {
|
if ($content) {
|
||||||
$content = json_decode($content, true);
|
$content = json_decode($content, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user