mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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:
parent
94d18cb1d3
commit
affd175116
2 changed files with 5 additions and 5 deletions
|
@ -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 {}
|
||||
|
|
2
ext/xsl/php_xsl_arginfo.h
generated
2
ext/xsl/php_xsl_arginfo.h
generated
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue