summaryrefslogtreecommitdiff
path: root/classes/labels.php
diff options
context:
space:
mode:
authorwn_ <[email protected]>2021-11-12 01:50:40 +0000
committerwn_ <[email protected]>2021-11-12 01:50:40 +0000
commit57bf56f7945b639d0e39f4c7ad9da161a4a18888 (patch)
treed44ca0e3b19c7ebf04a00018ba1acb342f4809f2 /classes/labels.php
parenta0f37c3206fce8a1fb5a2d82d3d3206990ca1e9c (diff)
Address PHPStan warnings in 'classes/article.php'.
Also related changes in some other classes.
Diffstat (limited to 'classes/labels.php')
-rw-r--r--classes/labels.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/labels.php b/classes/labels.php
index b9c480f82..d78f92139 100644
--- a/classes/labels.php
+++ b/classes/labels.php
@@ -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)