revise phpdoc annotations for hook_sanitize()

This commit is contained in:
Andrew Dolgov 2021-11-14 20:19:12 +03:00
parent f5c881586b
commit 6bd6a14c20
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -32,6 +32,8 @@ class Af_Youtube_Embed extends Plugin {
</div>";
}
return "";
}
function api_version() {