1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:15:55 +00:00

deal with phpstan warnings in auto_assign_labels and bookmarklets

This commit is contained in:
Andrew Dolgov
2021-11-14 21:14:21 +03:00
parent f537502fce
commit 5f808051b2
2 changed files with 10 additions and 4 deletions

View File

@@ -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()