Skip to content

Commit 7278364

Browse files
authored
Remove useless RETURN_NULLs() (#14350)
These functions are void, their use of RETURN_NULL() was mildly confusing.
1 parent 1d0cdd1 commit 7278364

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/dom/element.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,8 +1318,6 @@ PHP_METHOD(DOMElement, setIdAttribute)
13181318
} else {
13191319
php_set_attribute_id(attrp, is_id);
13201320
}
1321-
1322-
RETURN_NULL();
13231321
}
13241322
/* }}} end dom_element_set_id_attribute */
13251323

@@ -1349,8 +1347,6 @@ PHP_METHOD(DOMElement, setIdAttributeNS)
13491347
} else {
13501348
php_set_attribute_id(attrp, is_id);
13511349
}
1352-
1353-
RETURN_NULL();
13541350
}
13551351
/* }}} end dom_element_set_id_attribute_ns */
13561352

@@ -1378,8 +1374,6 @@ static void dom_element_set_id_attribute_node(INTERNAL_FUNCTION_PARAMETERS, zend
13781374
} else {
13791375
php_set_attribute_id(attrp, is_id);
13801376
}
1381-
1382-
RETURN_NULL();
13831377
}
13841378

13851379
PHP_METHOD(DOMElement, setIdAttributeNode)

0 commit comments

Comments
 (0)