From 242cf916eff84325c4ab30fdc4dc24292ab6127f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 14 Nov 2021 21:20:59 +0300 Subject: deal with phpstan warnings in plugins/note, nsfw, and share --- plugins/nsfw/init.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'plugins/nsfw/init.php') diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index fc38fef71..a349ceac0 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -1,5 +1,7 @@ $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 {