From 97965beecb588caa881042d11acaf7d81e212c6f Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 30 Nov 2020 00:53:43 +0100 Subject: [PATCH] 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. --- ext/tidy/tidy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 856a8a2f23c9a..5b53f65578330 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) {