Skip to content

Commit 35bfc80

Browse files
committed
Regression test about GenericTagValueNode that starts at next line
1 parent b0c366d commit 35bfc80

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/PHPStan/Parser/PhpDocParserTest.php

+19
Original file line numberDiff line numberDiff line change
@@ -2553,6 +2553,25 @@ public function provideSingleLinePhpDocData(): Iterator
25532553
]),
25542554
];
25552555

2556+
yield [
2557+
'@example with description starting at next line',
2558+
'/** ' . PHP_EOL .
2559+
' * @example' . PHP_EOL .
2560+
' * entity_managers:' . PHP_EOL .
2561+
' * default:' . PHP_EOL .
2562+
' */',
2563+
new PhpDocNode([
2564+
new PhpDocTagNode(
2565+
'@example',
2566+
new GenericTagValueNode('')
2567+
),
2568+
new PhpDocTextNode(
2569+
'entity_managers:' . PHP_EOL .
2570+
' default:'
2571+
),
2572+
]),
2573+
];
2574+
25562575
yield [
25572576
'callable with space between keyword and parameters',
25582577
'/** @var callable (int): void */',

0 commit comments

Comments
 (0)