Skip to content

Commit ce3ff8e

Browse files
committed
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 phpGH-6467.
1 parent 90d5c40 commit ce3ff8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/tidy/tidy.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,7 @@ static void php_tidy_create_node(INTERNAL_FUNCTION_PARAMETERS, tidy_base_nodetyp
770770
node = tidyGetBody(obj->ptdoc->doc);
771771
break;
772772

773-
default:
774-
RETURN_NULL();
775-
break;
773+
EMPTY_SWITCH_DEFAULT_CASE()
776774
}
777775

778776
if (!node) {

0 commit comments

Comments
 (0)