Skip to content

Commit

Permalink
Merge pull request #1183 from sparklink-pro/master
Browse files Browse the repository at this point in the history
Update DocBlockTypeGuesser.php - cs fix
  • Loading branch information
Vincz committed Apr 27, 2024
2 parents 592d0b4 + 63c532d commit f3260df
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit f3260df

Please sign in to comment.