1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

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.
This commit is contained in:
Niels Dossche
2024-03-14 19:27:44 +01:00
committed by GitHub
parent 94d18cb1d3
commit affd175116
2 changed files with 5 additions and 5 deletions

View File

@@ -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 {}

View File

@@ -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)