File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -175,9 +175,11 @@ public function getTagsWithTypeByName(string $name) : array
175
175
$ result = [];
176
176
177
177
foreach ($ this ->getTagsByName ($ name ) as $ tag ) {
178
- if ($ tag instanceof TagWithType) {
179
- $ result [] = $ tag ;
178
+ if (! $ tag instanceof TagWithType) {
179
+ continue ;
180
180
}
181
+
182
+ $ result [] = $ tag ;
181
183
}
182
184
183
185
return $ result ;
Original file line number Diff line number Diff line change 14
14
namespace phpDocumentor \Reflection ;
15
15
16
16
use Mockery as m ;
17
- use phpDocumentor \Reflection \DocBlock \Tags \Author ;
18
17
use phpDocumentor \Reflection \DocBlock \Tags \Deprecated ;
19
18
use phpDocumentor \Reflection \Types \Context ;
20
19
use phpDocumentor \Reflection \Types \String_ ;
23
22
/**
24
23
* @uses \Webmozart\Assert\Assert
25
24
*
26
- * @coversDefaultClass phpDocumentor\Reflection\DocBlock
25
+ * @coversDefaultClass \ phpDocumentor\Reflection\DocBlock
27
26
* @covers ::<private>
28
27
*/
29
28
class DocBlockTest extends TestCase
You can’t perform that action at this time.
0 commit comments