[php-src] PR #12315: Fix type error on XSLTProcessor::transformToDoc return value with SimpleXML
| From: | nielsdos | Date: | Thu, 28 Sep 2023 22:05:46 +0000 |
| Subject: | [php-src] PR #12315: Fix type error on XSLTProcessor::transformToDoc return value with SimpleXML | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23730@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12315
Author: nielsdos
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.