History log of /PHP-8.1/ext/xsl/tests/transformToDoc_sxe_type_error.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 2a7f23e9 28-Sep-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix type error on XSLTProcessor::transformToDoc return value with SimpleXML

The return type is wrong. You can also use this method with SimpleXML.
In fact, PHP provides a way that even t

Fix type error on XSLTProcessor::transformToDoc return value with SimpleXML

The return type is wrong. You can also use this method with SimpleXML.
In fact, PHP provides a way that even third party libraries can hook
into its XML handling. Therefore, we cannot even use the
SimpleXML|DOMDocument|false union type as third party extensions may
extend the possibilities.

Broke in 8.1 in 1b35056a33.

Closes GH-12315.

show more ...