fix missing attribute aware

This commit is contained in:
TomasVotruba 2020-02-10 10:56:32 +01:00
parent 5f38ce4608
commit 1abb9835e5

View File

@ -21,6 +21,7 @@ use PHPStan\Type\MixedType;
use PHPStan\Type\Type; use PHPStan\Type\Type;
use PHPStan\Type\UnionType; use PHPStan\Type\UnionType;
use Rector\AttributeAwarePhpDoc\Ast\PhpDoc\AttributeAwareParamTagValueNode; use Rector\AttributeAwarePhpDoc\Ast\PhpDoc\AttributeAwareParamTagValueNode;
use Rector\AttributeAwarePhpDoc\Ast\PhpDoc\AttributeAwarePhpDocTagNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfo;
use Rector\Core\Exception\ShouldNotHappenException; use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\Rector\AbstractPHPUnitRector; use Rector\Core\Rector\AbstractPHPUnitRector;
@ -263,7 +264,9 @@ PHP
private function createDataProviderTagNode(string $dataProviderMethodName): PhpDocTagNode private function createDataProviderTagNode(string $dataProviderMethodName): PhpDocTagNode
{ {
return new PhpDocTagNode('@dataProvider', new GenericTagValueNode($dataProviderMethodName . '()')); return new AttributeAwarePhpDocTagNode('@dataProvider', new GenericTagValueNode(
$dataProviderMethodName . '()'
));
} }
/** /**