From: Christoph M. Becker Date: Sun, 29 Nov 2020 23:53:43 +0000 (+0100) Subject: php_tidy_create_node() expects a fixed set of node_types X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce3ff8ec7d10913b8a8b328997bc5e0895c646d4;p=php php_tidy_create_node() expects a fixed set of node_types This static function is not supposed to deal with arbitrary `node_type`s, so there is no need to do so. Closes GH-6467. --- diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 856a8a2f23..5b53f65578 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -770,9 +770,7 @@ static void php_tidy_create_node(INTERNAL_FUNCTION_PARAMETERS, tidy_base_nodetyp node = tidyGetBody(obj->ptdoc->doc); break; - default: - RETURN_NULL(); - break; + EMPTY_SWITCH_DEFAULT_CASE() } if (!node) {