[php-src] master: Fix parameter hints in php_xsl.stub.php (#13704)
| From: | Niels Dossche via GitHub | Date: | Thu, 14 Mar 2024 18:41:33 +0000 |
| Subject: | [php-src] master: Fix parameter hints in php_xsl.stub.php (#13704) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127731@lists.php.net to get a copy of this message | ||
Author: Niels Dossche (nielsdos)
Committer: GitHub (web-flow)
Pusher: nielsdos
Date: 2024-03-14T19:27:44+01:00
Commit: https://github.com/php/php-src/commit/affd175116c9438739de45db5fdfd22fb126c536
Raw diff: https://github.com/php/php-src/commit/affd175116c9438739de45db5fdfd22fb126c536.diff
Fix parameter hints in php_xsl.stub.php (#13704)
After the spec compliance PR landed, DOMDocument no longer inherits from
DOM\Document, and so the type hint needs to be updated.
Changed paths:
M ext/xsl/php_xsl.stub.php
M ext/xsl/php_xsl_arginfo.h
Diff:
diff --git a/ext/xsl/php_xsl.stub.php b/ext/xsl/php_xsl.stub.php
index 16ffaf5b31a4a..cdc24febb028b 100644
--- a/ext/xsl/php_xsl.stub.php
+++ b/ext/xsl/php_xsl.stub.php
@@ -76,25 +76,25 @@ class XSLTProcessor
public bool $cloneDocument = false;
/**
- * @param DOM\Document|SimpleXMLElement $stylesheet
+ * @param DOMDocument|DOM\Document|SimpleXMLElement $stylesheet
* @tentative-return-type
*/
public function importStylesheet(object $stylesheet): bool {}
/**
- * @param DOM\Document|SimpleXMLElement $document
+ * @param DOMDocument|DOM\Document|SimpleXMLElement $document
* @tentative-return-type
*/
public function transformToDoc(object $document, ?string $returnClass = null): object|false {}
/**
- * @param DOM\Document|SimpleXMLElement $document
+ * @param DOMDocument|DOM\Document|SimpleXMLElement $document
* @tentative-return-type
*/
public function transformToUri(object $document, string $uri): int {}
/**
- * @param DOM\Document|SimpleXMLElement $document
+ * @param DOMDocument|DOM\Document|SimpleXMLElement $document
* @tentative-return-type
*/
public function transformToXml(object $document): string|null|false {}
diff --git a/ext/xsl/php_xsl_arginfo.h b/ext/xsl/php_xsl_arginfo.h
index 30a7d108a7cc1..168b1930ebeb4 100644
--- a/ext/xsl/php_xsl_arginfo.h
+++ b/ext/xsl/php_xsl_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 0d12e04d92a3f0cc70179814aab0491d1d3fd2f7 */
+ * Stub hash: 855b4db5fd6a8f99ee0580008ecca2a747174b02 */
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_XSLTProcessor_importStylesheet, 0,
1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, stylesheet, IS_OBJECT, 0)