Skip to content

Commit f3260df

Browse files
authored
Merge pull request #1183 from sparklink-pro/master
Update DocBlockTypeGuesser.php - cs fix
2 parents 592d0b4 + 63c532d commit f3260df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Config/Parser/MetadataParser/TypeGuesser/DocBlockTypeGuesser.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Exception;
88
use phpDocumentor\Reflection\DocBlock\Tags\TagWithType;
99
use phpDocumentor\Reflection\DocBlockFactory;
10+
use phpDocumentor\Reflection\DocBlockFactoryInterface;
1011
use phpDocumentor\Reflection\Type;
1112
use phpDocumentor\Reflection\Types\AbstractList;
1213
use phpDocumentor\Reflection\Types\Compound;
@@ -24,7 +25,7 @@
2425

2526
final class DocBlockTypeGuesser extends PhpTypeGuesser
2627
{
27-
protected ?DocBlockFactory $factory;
28+
protected ?DocBlockFactoryInterface $factory;
2829

2930
public function getName(): string
3031
{
@@ -128,7 +129,7 @@ protected function resolveCompound(Compound $compound): ?Type
128129
return null;
129130
}
130131

131-
private function getParser(): DocBlockFactory
132+
private function getParser(): DocBlockFactoryInterface
132133
{
133134
if (!isset($this->factory)) {
134135
$this->factory = DocBlockFactory::createInstance();

0 commit comments

Comments
 (0)