From 40a4ffa85fd3bd16036a169772d5d58a9b1a9294 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Tue, 11 Jul 2023 16:14:13 +0800 Subject: [PATCH] Parameter and return of `DOMNode::lookupNamespaceURI` are both nullable --- dom/dom_c.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/dom_c.php b/dom/dom_c.php index 9622a4ef6..2fc59e593 100644 --- a/dom/dom_c.php +++ b/dom/dom_c.php @@ -297,7 +297,7 @@ public function isDefaultNamespace(#[LanguageLevelTypeAware(['8.0' => 'string'], * @param string|null $prefix

* The prefix of the namespace. *

- * @return string The namespace URI of the node. + * @return string|null The namespace URI of the node. */ #[PhpStormStubsElementAvailable(from: '8.0')] #[TentativeType] @@ -306,10 +306,10 @@ public function lookupNamespaceURI(?string $prefix): ?string {} /** * Gets the namespace URI of the node based on the prefix * @link https://php.net/manual/en/domnode.lookupnamespaceuri.php - * @param string $prefix

+ * @param string|null $prefix

* The prefix of the namespace. *

- * @return string The namespace URI of the node. + * @return string|null The namespace URI of the node. */ #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] public function lookupNamespaceUri($prefix) {}