Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Exception;
use phpDocumentor\Reflection\DocBlock\Tags\TagWithType;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlockFactoryInterface;
use phpDocumentor\Reflection\Type;
use phpDocumentor\Reflection\Types\AbstractList;
use phpDocumentor\Reflection\Types\Compound;
Expand All @@ -24,7 +25,7 @@

final class DocBlockTypeGuesser extends PhpTypeGuesser
{
protected ?DocBlockFactory $factory;
protected ?DocBlockFactoryInterface $factory;

public function getName(): string
{
Expand Down Expand Up @@ -128,7 +129,7 @@ protected function resolveCompound(Compound $compound): ?Type
return null;
}

private function getParser(): DocBlockFactory
private function getParser(): DocBlockFactoryInterface
{
if (!isset($this->factory)) {
$this->factory = DocBlockFactory::createInstance();
Expand Down