Skip to content

Commit 83be274

Browse files
committed
Minor fix
1 parent c8942f0 commit 83be274

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
*/
2020
final class ClassAndInterfaceTagRetriever implements MethodTagRetrieverInterface
2121
{
22-
/**
23-
* @var MethodTagRetrieverInterface
24-
*/
2522
private $classRetriever;
2623

2724
public function __construct(MethodTagRetrieverInterface $classRetriever = null)
@@ -32,7 +29,7 @@ public function __construct(MethodTagRetrieverInterface $classRetriever = null)
3229
return;
3330
}
3431

35-
$this->classRetriever = (class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory'))
32+
$this->classRetriever = class_exists('phpDocumentor\Reflection\DocBlockFactory') && class_exists('phpDocumentor\Reflection\Types\ContextFactory')
3633
? new ClassTagRetriever()
3734
: new LegacyClassTagRetriever()
3835
;
@@ -62,7 +59,7 @@ private function getInterfacesTagList(\ReflectionClass $reflectionClass)
6259
$tagList = array();
6360

6461
foreach($interfaces as $interface) {
65-
$tagList = array_merge($tagList, $this->getTagList($interface));
62+
$tagList = array_merge($tagList, $this->classRetriever->getTagList($interface));
6663
}
6764

6865
return $tagList;

0 commit comments

Comments
 (0)