[php-src] PR #13762: Fix return type of loading DOM documents on PHP 8.0-8.2 branches.
| From: | VincentLanglet | Date: | Tue, 19 Mar 2024 19:31:28 +0000 |
| Subject: | [php-src] PR #13762: Fix return type of loading DOM documents on PHP 8.0-8.2 branches. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25487@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13762
Author: VincentLanglet
Hi @nielsdos,
In https://github.com/php/php-src/pull/11803
you fixed the return type of loading DOM documents on PHP 8.3 branch.
I'd like to fix the PHPdoc too on PHP-8.0, PHP-8.1 and PHP-8.2 branch.
The https://github.com/phpstan/php-8-stubs
library is generating stub/phpdoc directly from the four PHP-8.0, PHP-8.1, PHP-8.2 and PHP-8.3
branches and merging the results.
Unfortunately the fact that the phpdoc si wrong on PHP 8.0-8.2 branches ends with a wrong phpdoc on
phpstan stubs
https://github.com/phpstan/php-8-stubs/blob/main/stubs/ext/dom/DOMDocument.php#L84
It would be great to fix the phpdoc too on 8.0 branch (and 8.1 and 8.2) to solve this phpstan issue.
https://github.com/phpstan/phpstan/issues/10057#issuecomment-2003486252
I know PHP 8.0 is EOL, but does such PR would be ok ?