diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 20:19:12 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 20:19:12 +0300 |
commit | 6bd6a14c207ddaf35256b11dd381093d57ef38a4 (patch) | |
tree | 40a0a208a9b718b71274071e01a58e0b99be5539 /classes/plugin.php | |
parent | f5c881586bd6eb41036e36625f426c00aa993c4f (diff) |
revise phpdoc annotations for hook_sanitize()
Diffstat (limited to 'classes/plugin.php')
-rw-r--r-- | classes/plugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/plugin.php b/classes/plugin.php index 290c4cc3b..55ccff9c3 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -232,7 +232,7 @@ abstract class Plugin { * @param array<string> $allowed_elements * @param array<string> $disallowed_attributes * @param int $article_id - * @return DOMDocument + * @return DOMDocument|array<int,DOMDocument|array<string>> */ function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id) { user_error("Dummy method invoked.", E_USER_ERROR); @@ -519,7 +519,7 @@ abstract class Plugin { /** * @param string $url - * @return string + * @return string|false */ function hook_get_full_text($url) { user_error("Dummy method invoked.", E_USER_ERROR); |