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} $params + * @param array{'article': array|null, 'headline': array|null} $params * @return array */ function hook_render_article_api($params) { @@ -532,7 +532,7 @@ abstract class Plugin { * @param string $content * @param string $site_url * @param array $article - * @return string + * @return string|array */ function hook_article_image($enclosures, $content, $site_url, $article) { user_error("Dummy method invoked.", E_USER_ERROR);