Skip to content

Commit a089386

Browse files
committed
dom_import_simplexml() cannot return null
1 parent 02acc5a commit a089386

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/dom/php_dom.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,4 @@ public function registerPhpFunctions(string|array|null $restrict = null) {}
433433
}
434434
#endif
435435

436-
function dom_import_simplexml(object $node): ?DOMElement {}
436+
function dom_import_simplexml(object $node): DOMElement {}

ext/dom/php_dom_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: a4767d6ea60859c8897f681fb69d6f73b1f50471 */
2+
* Stub hash: f6cb7dbafec4d360cae9f19ae23d34e3ecafd6cf */
33

4-
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1)
4+
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0)
55
ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0)
66
ZEND_END_ARG_INFO()
77

0 commit comments

Comments
 (0)