Skip to content

Commit

Permalink
修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Apr 18, 2024
1 parent d3f2770 commit 721f718
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Util/DocBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

namespace Imi\Util;

use phpDocumentor\Reflection\DocBlock as RealDocBlock;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlockFactoryInterface;
use phpDocumentor\Reflection\Location;
use phpDocumentor\Reflection\Types\Context;

class DocBlock
{
use \Imi\Util\Traits\TStaticClass;

private static ?DocBlockFactory $factory = null;
private static ?DocBlockFactoryInterface $factory = null;

public static function getFactory(): DocBlockFactory
public static function getFactory(): DocBlockFactoryInterface
{
if (null === self::$factory)
{
Expand All @@ -28,7 +28,7 @@ public static function getFactory(): DocBlockFactory
/**
* @param object|string $docblock a string containing the DocBlock to parse or an object supporting the getDocComment method (such as a ReflectionClass object)
*/
public static function getDocBlock($docblock, ?Context $context = null, ?Location $location = null): RealDocBlock
public static function getDocBlock($docblock, ?Context $context = null, ?Location $location = null): DocBlockFactoryInterface
{
return self::getFactory()->create($docblock, $context, $location);
}
Expand Down

0 comments on commit 721f718

Please sign in to comment.