summaryrefslogtreecommitdiff
path: root/plugins/auto_assign_labels
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 21:14:21 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 21:14:21 +0300
commit5f808051b2bdb2e43f16693ba19b20940944d556 (patch)
treed0da0cd898ba9be39d99f0ff8841c9a5661a7a03 /plugins/auto_assign_labels
parentf537502fce498118543d47b3d1cb463104f25b1d (diff)
deal with phpstan warnings in auto_assign_labels and bookmarklets
Diffstat (limited to 'plugins/auto_assign_labels')
-rwxr-xr-xplugins/auto_assign_labels/init.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/auto_assign_labels/init.php b/plugins/auto_assign_labels/init.php
index 84fce8d64..b2e5718ea 100755
--- a/plugins/auto_assign_labels/init.php
+++ b/plugins/auto_assign_labels/init.php
@@ -11,7 +11,12 @@ class Auto_Assign_Labels extends Plugin {
$host->add_hook($host::HOOK_ARTICLE_FILTER, $this);
}
- function get_all_labels_filter_format($owner_uid) {
+ /**
+ * @param int $owner_uid
+ * @return array<int, array<int, int|string>>
+ * @throws PDOException
+ */
+ private function get_all_labels_filter_format(int $owner_uid) : array {
$rv = array();
// TODO: use Labels::get_all()