Skip to content

Commit ac0db42

Browse files
committed
Fix final zpp missmatch failure in DOMDocument::saveXML.
1 parent b26373d commit ac0db42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/dom/dom.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function saveHTMLFile(string $filename) {}
159159
#endif
160160

161161
/** @return string|false */
162-
public function saveXML(?DOMNode $node, int $options = 0) {}
162+
public function saveXML(?DOMNode $node = null, int $options = 0) {}
163163

164164
#if defined(LIBXML_SCHEMAS_ENABLED)
165165
/** @return bool */

ext/dom/dom_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveHTMLFile, 0, 0, 1)
207207
ZEND_END_ARG_INFO()
208208
#endif
209209

210-
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveXML, 0, 0, 1)
210+
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DOMDocument_saveXML, 0, 0, 0)
211211
ZEND_ARG_OBJ_INFO(0, node, DOMNode, 1)
212212
ZEND_ARG_TYPE_INFO(0, options, IS_LONG, 0)
213213
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)