<?php
declare(strict_types=1);
namespace App\Entity;
use App\Repository\StorageTypeRepository;
use App\Tests\Entity\StorageTypeTest;
use Doctrine\ORM\Mapping as ORM;
/**
* @see StorageTypeTest
* @see \App\Tests\Entity\StorageTypeTest
*/
#[ORM\Entity(repositoryClass: StorageTypeRepository::class)]
class StorageType
{}
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
__DIR__.'/bin',
__DIR__.'/config',
__DIR__.'/migrations',
__DIR__.'/public',
__DIR__.'/src',
__DIR__.'/tests',
]);
// exclude files
$rectorConfig->skip([
__DIR__.'/config/reference.php',
__DIR__.'/config/bundles.php',
]);
$rectorConfig->sets([
SetList::CODE_QUALITY,
SetList::CODING_STYLE,
SetList::DEAD_CODE,
SetList::EARLY_RETURN,
SetList::PRIVATIZATION,
SetList::INSTANCEOF,
SetList::TYPE_DECLARATION,
SetList::RECTOR_PRESET,
LevelSetList::UP_TO_PHP_85,
]);
};
Bug Report
Rector version: 2.5.3
When running rector it adds another
@seetag for the class.Minimal PHP Code Causing Issue
5) src/Entity/StorageType.php:10 ---------- begin diff ---------- @@ Line 10 @@ /** * @see StorageTypeTest + * @see \App\Tests\Entity\StorageTypeTest */ #[ORM\Entity(repositoryClass: StorageTypeRepository::class)] class StorageType ----------- end diff ----------- Applied rules: * AddSeeTestAnnotationRectorrector.php
Expected Behaviour
If the class is already imported it should check it if
@seeis added already or not. (fully_classified)