@@ -2654,11 +2654,11 @@ public function provideSingleLinePhpDocData(): Iterator
26542654 }
26552655
26562656 /**
2657- * @return array<mixed>
2657+ * @return iterable< array<mixed> >
26582658 */
2659- public function provideMultiLinePhpDocData (): array
2659+ public function provideMultiLinePhpDocData (): iterable
26602660 {
2661- return [
2661+ yield from [
26622662 [
26632663 'multi-line with two tags ' ,
26642664 '/**
@@ -3560,6 +3560,40 @@ public function provideMultiLinePhpDocData(): array
35603560 ]),
35613561 ],
35623562 ];
3563+
3564+ yield [
3565+ 'Empty lines before end ' ,
3566+ '/** ' . PHP_EOL .
3567+ ' * Real description ' . PHP_EOL .
3568+ ' * @param int $a ' . PHP_EOL .
3569+ ' * ' . PHP_EOL .
3570+ ' * ' . PHP_EOL .
3571+ ' */ ' ,
3572+ new PhpDocNode ([
3573+ new PhpDocTextNode ('Real description ' ),
3574+ new PhpDocTagNode ('@param ' , new ParamTagValueNode (new IdentifierTypeNode ('int ' ), false , '$a ' , '' )),
3575+ new PhpDocTextNode ('' ),
3576+ new PhpDocTextNode ('' ),
3577+ ]),
3578+ ];
3579+
3580+ yield [
3581+ 'Empty lines before end 2 ' ,
3582+ '/** ' . PHP_EOL .
3583+ ' * Real description ' . PHP_EOL .
3584+ ' * @param int $a ' . PHP_EOL .
3585+ ' * ' . PHP_EOL .
3586+ ' * ' . PHP_EOL .
3587+ ' * test ' . PHP_EOL .
3588+ ' */ ' ,
3589+ new PhpDocNode ([
3590+ new PhpDocTextNode ('Real description ' ),
3591+ new PhpDocTagNode ('@param ' , new ParamTagValueNode (new IdentifierTypeNode ('int ' ), false , '$a ' , '' )),
3592+ new PhpDocTextNode ('' ),
3593+ new PhpDocTextNode ('' ),
3594+ new PhpDocTextNode ('test ' ),
3595+ ]),
3596+ ];
35633597 }
35643598
35653599 public function provideTemplateTagsData (): Iterator
0 commit comments