From 242cf916eff84325c4ab30fdc4dc24292ab6127f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Nov 2021 21:20:59 +0300 Subject: [PATCH] deal with phpstan warnings in plugins/note, nsfw, and share --- plugins/note/init.php | 4 ++-- plugins/nsfw/init.php | 11 +++++++++-- plugins/share/init.php | 5 +---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/plugins/note/init.php b/plugins/note/init.php index bc3df64b1..28d3c8c3a 100644 --- a/plugins/note/init.php +++ b/plugins/note/init.php @@ -21,7 +21,7 @@ class Note extends Plugin { style='cursor : pointer' title='".__('Edit article note')."'>note"; } - function edit() { + function edit() : void { $id = clean($_REQUEST['id']); $sth = $this->pdo->prepare("SELECT note FROM ttrss_user_entries WHERE @@ -49,7 +49,7 @@ class Note extends Plugin { $article + * @return array + * @throws PDOException + */ + private function rewrite_contents(array $article) : array { $tags = explode(",", $this->host->get($this, "tags")); $article_tags = $article["tags"]; @@ -101,7 +108,7 @@ class NSFW extends Plugin { "> - - - - +