Skip to content

Commit 6ac1096

Browse files
VincentLangletondrejmirtes
authored andcommitted
Update stub
1 parent 621ff58 commit 6ac1096

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extractor/extract.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,11 @@ private function filterFunctionPhpDocs(Node\Stmt\Function_ $function): Node\Stmt
835835
'xml_set_start_namespace_decl_handler',
836836
'xml_set_end_namespace_decl_handler',
837837
], true)) {
838+
/**
839+
* Stub was updated in PHP 8.4, but the support for `callable|string|null` already exists before.
840+
*
841+
* @see https://github.com/php/php-src/pull/12340/files#diff-2c2d210a6a8bc8eae404fa6938be724484865b47cc574d94d24e2c18524c1b40
842+
*/
838843
$comments = $function->getAttribute('comments');
839844
if (null !== $comments) {
840845
$function->setAttribute('comments', array_map(

0 commit comments

Comments
 (0)