mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
More phpstan checks for better code
This commit is contained in:
@@ -13,7 +13,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace phpDocumentor\Reflection\DocBlock;
|
||||
|
||||
use Exception;
|
||||
use Mockery as m;
|
||||
use phpDocumentor\Reflection\DocBlock\Tags\InvalidTag;
|
||||
use phpDocumentor\Reflection\DocBlock\Tags\Link as LinkTag;
|
||||
@@ -216,7 +215,7 @@ DESCRIPTION;
|
||||
$tagFactory->shouldReceive('create')
|
||||
->once()
|
||||
->with('@see $name', $context)
|
||||
->andReturn(InvalidTag::create('$name', 'see', new Exception()));
|
||||
->andReturn(InvalidTag::create('$name', 'see'));
|
||||
|
||||
$factory = new DescriptionFactory($tagFactory);
|
||||
$description = $factory->create($contents, $context);
|
||||
|
||||
Reference in New Issue
Block a user