Skip to content

Commit d7b38ea

Browse files
authored
Merge branch refs/heads/1.21.x into 1.22.x
2 parents 0666db5 + 35bfc80 commit d7b38ea

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: tests/PHPStan/Parser/PhpDocParserTest.php

+19
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,25 @@ public function provideSingleLinePhpDocData(): Iterator
25662566
]),
25672567
];
25682568

2569+
yield [
2570+
'@example with description starting at next line',
2571+
'/** ' . PHP_EOL .
2572+
' * @example' . PHP_EOL .
2573+
' * entity_managers:' . PHP_EOL .
2574+
' * default:' . PHP_EOL .
2575+
' */',
2576+
new PhpDocNode([
2577+
new PhpDocTagNode(
2578+
'@example',
2579+
new GenericTagValueNode('')
2580+
),
2581+
new PhpDocTextNode(
2582+
'entity_managers:' . PHP_EOL .
2583+
' default:'
2584+
),
2585+
]),
2586+
];
2587+
25692588
yield [
25702589
'callable with space between keyword and parameters',
25712590
'/** @var callable (int): void */',

0 commit comments

Comments
 (0)