1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-25 21:21:29 +00:00

Fix the type of Labels::update_cache()

This commit is contained in:
wn_
2021-11-13 14:41:22 +00:00
parent f2323bda81
commit b37a03fb31
2 changed files with 4 additions and 1 deletions

View File

@@ -553,6 +553,8 @@ class Article extends Handler_Protected {
}
if (count($rv) > 0)
// PHPStan has issues with the shape of $rv for some reason (array vs non-empty-array).
// @phpstan-ignore-next-line
Labels::update_cache($owner_uid, $id, $rv);
else
Labels::update_cache($owner_uid, $id, array("no-labels" => 1));