@@ -60,11 +60,13 @@ public function testInterpretingSummaryWithEllipsis(): void
60
60
61
61
public function testInterpretingASimpleDocBlock (): void
62
62
{
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
+
68
70
include (__DIR__ . '/../../examples/01-interpreting-a-simple-docblock.php ' );
69
71
70
72
$ descriptionText = <<<DESCRIPTION
@@ -83,12 +85,15 @@ public function testInterpretingASimpleDocBlock(): void
83
85
84
86
public function testInterpretingTags (): void
85
87
{
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
+
92
97
include (__DIR__ . '/../../examples/02-interpreting-tags.php ' );
93
98
94
99
$ this ->assertTrue ($ hasSeeTag );
@@ -105,15 +110,19 @@ public function testInterpretingTags(): void
105
110
106
111
public function testDescriptionsCanEscapeAtSignsAndClosingBraces (): void
107
112
{
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 ;
115
123
116
124
include (__DIR__ . '/../../examples/playing-with-descriptions/02-escaping.php ' );
125
+
117
126
$ this ->assertSame (
118
127
<<<'DESCRIPTION'
119
128
You can escape the @-sign by surrounding it with braces, for example: @. And escape a closing brace within an
0 commit comments