From a0893865b31c2f3af81861608b2b3f07ec0545b8 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 21 Jul 2021 11:13:37 +0200 Subject: [PATCH] dom_import_simplexml() cannot return null --- ext/dom/php_dom.stub.php | 2 +- ext/dom/php_dom_arginfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/dom/php_dom.stub.php b/ext/dom/php_dom.stub.php index 2a9a9cff805..df03b980b17 100644 --- a/ext/dom/php_dom.stub.php +++ b/ext/dom/php_dom.stub.php @@ -433,4 +433,4 @@ class DOMXPath } #endif -function dom_import_simplexml(object $node): ?DOMElement {} +function dom_import_simplexml(object $node): DOMElement {} diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index c3c54a4de78..7ab4f23ec30 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -1,7 +1,7 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: a4767d6ea60859c8897f681fb69d6f73b1f50471 */ + * Stub hash: f6cb7dbafec4d360cae9f19ae23d34e3ecafd6cf */ -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 1) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_dom_import_simplexml, 0, 1, DOMElement, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0) ZEND_END_ARG_INFO()