Skip to content

Commit affd175

Browse files
authored
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.
1 parent 94d18cb commit affd175

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/xsl/php_xsl.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,25 @@ class XSLTProcessor
7676
public bool $cloneDocument = false;
7777

7878
/**
79-
* @param DOM\Document|SimpleXMLElement $stylesheet
79+
* @param DOMDocument|DOM\Document|SimpleXMLElement $stylesheet
8080
* @tentative-return-type
8181
*/
8282
public function importStylesheet(object $stylesheet): bool {}
8383

8484
/**
85-
* @param DOM\Document|SimpleXMLElement $document
85+
* @param DOMDocument|DOM\Document|SimpleXMLElement $document
8686
* @tentative-return-type
8787
*/
8888
public function transformToDoc(object $document, ?string $returnClass = null): object|false {}
8989

9090
/**
91-
* @param DOM\Document|SimpleXMLElement $document
91+
* @param DOMDocument|DOM\Document|SimpleXMLElement $document
9292
* @tentative-return-type
9393
*/
9494
public function transformToUri(object $document, string $uri): int {}
9595

9696
/**
97-
* @param DOM\Document|SimpleXMLElement $document
97+
* @param DOMDocument|DOM\Document|SimpleXMLElement $document
9898
* @tentative-return-type
9999
*/
100100
public function transformToXml(object $document): string|null|false {}

ext/xsl/php_xsl_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)