1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:46:00 +00:00

Address PHPStan warnings in 'classes/article.php'.

Also related changes in some other classes.
This commit is contained in:
wn_
2021-11-12 01:50:40 +00:00
parent a0f37c3206
commit 57bf56f794
5 changed files with 71 additions and 39 deletions

View File

@@ -289,9 +289,9 @@ class Feeds extends Handler_Protected {
if ($line["num_enclosures"] > 0) {
$line["enclosures"] = Article::_format_enclosures($id,
$line["always_display_enclosures"],
sql_bool_to_bool($line["always_display_enclosures"]),
$line["content"],
$line["hide_images"]);
sql_bool_to_bool($line["hide_images"]));
} else {
$line["enclosures"] = [ 'formatted' => '', 'entries' => [] ];
}