1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove useless RETURN_NULLs() (#14350)

These functions are void, their use of RETURN_NULL() was mildly
confusing.
This commit is contained in:
Niels Dossche
2024-05-28 22:59:37 +02:00
committed by GitHub
parent 1d0cdd1b41
commit 7278364f9c

View File

@@ -1318,8 +1318,6 @@ PHP_METHOD(DOMElement, setIdAttribute)
} else {
php_set_attribute_id(attrp, is_id);
}
RETURN_NULL();
}
/* }}} end dom_element_set_id_attribute */
@@ -1349,8 +1347,6 @@ PHP_METHOD(DOMElement, setIdAttributeNS)
} else {
php_set_attribute_id(attrp, is_id);
}
RETURN_NULL();
}
/* }}} end dom_element_set_id_attribute_ns */
@@ -1378,8 +1374,6 @@ static void dom_element_set_id_attribute_node(INTERNAL_FUNCTION_PARAMETERS, zend
} else {
php_set_attribute_id(attrp, is_id);
}
RETURN_NULL();
}
PHP_METHOD(DOMElement, setIdAttributeNode)