@@ -60,11 +60,13 @@ public function testInterpretingSummaryWithEllipsis(): void
6060
6161 public function testInterpretingASimpleDocBlock (): void
6262 {
63- /**
64- * @var DocBlock $docblock
65- * @var string $summary
66- * @var Description $description
67- */
63+ /** @var DocBlock $docblock */
64+ $ docblock ;
65+ /** @var string $summary */
66+ $ summary ;
67+ /** @var Description $description */
68+ $ description ;
69+
6870 include (__DIR__ . '/../../examples/01-interpreting-a-simple-docblock.php ' );
6971
7072 $ descriptionText = <<<DESCRIPTION
@@ -83,12 +85,15 @@ public function testInterpretingASimpleDocBlock(): void
8385
8486 public function testInterpretingTags (): void
8587 {
86- /**
87- * @var DocBlock $docblock
88- * @var boolean $hasSeeTag
89- * @var Tag[] $tags
90- * @var See[] $seeTags
91- */
88+ /** @var DocBlock $docblock */
89+ $ docblock ;
90+ /** @var boolean $hasSeeTag */
91+ $ hasSeeTag ;
92+ /** @var Tag[] $tags */
93+ $ tags ;
94+ /** @var See[] $seeTags */
95+ $ seeTags ;
96+
9297 include (__DIR__ . '/../../examples/02-interpreting-tags.php ' );
9398
9499 $ this ->assertTrue ($ hasSeeTag );
@@ -105,15 +110,19 @@ public function testInterpretingTags(): void
105110
106111 public function testDescriptionsCanEscapeAtSignsAndClosingBraces (): void
107112 {
108- /**
109- * @var string $docComment
110- * @var DocBlock $docblock
111- * @var Description $description
112- * @var string $receivedDocComment
113- * @var string $foundDescription
114- */
113+ /** @var string $docComment */
114+ $ docComment ;
115+ /** @var DocBlock $docblock */
116+ $ docblock ;
117+ /** @var Description $description */
118+ $ description ;
119+ /** @var string $receivedDocComment */
120+ $ receivedDocComment ;
121+ /** @var string $foundDescription */
122+ $ foundDescription ;
115123
116124 include (__DIR__ . '/../../examples/playing-with-descriptions/02-escaping.php ' );
125+
117126 $ this ->assertSame (
118127 <<<'DESCRIPTION'
119128You can escape the @-sign by surrounding it with braces, for example: @. And escape a closing brace within an
0 commit comments