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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user