From 7988c79bd40356b62d9f1bca03284c0b35a49fcd Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <noreply@fakecake.org>
Date: Sun, 14 Nov 2021 18:05:31 +0300
Subject: [PATCH] plugin.php: add some minor method phpdoc corrections

---
 classes/plugin.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/plugin.php b/classes/plugin.php
index b20bbcbc2..290c4cc3b 100644
--- a/classes/plugin.php
+++ b/classes/plugin.php
@@ -241,7 +241,7 @@ abstract class Plugin {
 	}
 
 	/**
-	 * @param array{'article': array<string,mixed>} $params
+	 * @param array{'article': array<string,mixed>|null, 'headline': array<string,mixed>|null} $params
 	 * @return array<string, string>
 	 */
 	function hook_render_article_api($params) {
@@ -532,7 +532,7 @@ abstract class Plugin {
 	 * @param string $content
 	 * @param string $site_url
 	 * @param array<string,mixed> $article
-	 * @return string
+	 * @return string|array<int,string>
 	 */
 	function hook_article_image($enclosures, $content, $site_url, $article) {
 		user_error("Dummy method invoked.", E_USER_ERROR);
-- 
GitLab