Skip to content

Commit 7da389b

Browse files
committed
keep
1 parent f157f93 commit 7da389b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rules-tests/AnnotationsToAttributes/Rector/Class_/CoversAnnotationWithValueToAttributeRector/Fixture/covers_class_default.php.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use PHPUnit\Framework\TestCase;
66

77
/**
88
* @coversDefaultClass \Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Source\ExistingClass
9+
* @covers ::__construct
910
*/
1011
final class CoversClassDefault extends TestCase
1112
{

rules/AnnotationsToAttributes/Rector/Class_/CoversAnnotationWithValueToAttributeRector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ private function handleCovers(PhpDocInfo $phpDocInfo, bool $hasCoversDefault): a
249249

250250
$attributeGroups[$covers] = $attributeGroup;
251251
$this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $desiredTagValueNode);
252+
} elseif ($hasCoversDefault && str_starts_with($covers, '::')) {
253+
$this->phpDocTagRemover->removeTagValueFromNode($phpDocInfo, $desiredTagValueNode);
252254
}
253255
}
254256

0 commit comments

Comments
 (0)