We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0c366d commit 35bfc80Copy full SHA for 35bfc80
tests/PHPStan/Parser/PhpDocParserTest.php
@@ -2553,6 +2553,25 @@ public function provideSingleLinePhpDocData(): Iterator
2553
]),
2554
];
2555
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
+
2575
yield [
2576
'callable with space between keyword and parameters',
2577
'/** @var callable (int): void */',
0 commit comments