1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-26 07:51:29 +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

@@ -71,11 +71,11 @@ class Labels
}
/**
* @param array<int, array<int|string, mixed>>|null $labels
* @param array<int, array<int, array<int, int|string>> $labels
*
* @see Article::_get_labels()
*/
static function update_cache(int $owner_uid, int $id, ?array $labels = null, bool $force = false): void {
static function update_cache(int $owner_uid, int $id, array $labels, bool $force = false): void {
$pdo = Db::pdo();
if ($force)