Skip to content

Commit 4a97e8b

Browse files
committed
Minor fix
1 parent c8942f0 commit 4a97e8b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Prophecy/PhpDocumentor/ClassAndInterfaceTagRetriever.php

+3-6
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
;
@@ -46,7 +43,7 @@ public function __construct(MethodTagRetrieverInterface $classRetriever = null)
4643
public function getTagList(\ReflectionClass $reflectionClass)
4744
{
4845
return array_merge(
49-
$this->getTagList($reflectionClass),
46+
$this->classRetriever->getTagList($reflectionClass),
5047
$this->getInterfacesTagList($reflectionClass)
5148
);
5249
}
@@ -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)