Skip to content

Commit d0dad6f

Browse files
committed
Mark AssertPropertyExistsRector as DeprecatedInterface
The rule already throws in refactor() and carries a @deprecated tag, but without the interface it is still reported as an active rule that is not part of any set.
1 parent 8b209cb commit d0dad6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rules/CodeQuality/Rector/MethodCall/AssertPropertyExistsRector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;
99
use PhpParser\Node\Expr\StaticCall;
10+
use Rector\Configuration\Deprecation\Contract\DeprecatedInterface;
1011
use Rector\Exception\ShouldNotHappenException;
1112
use Rector\Rector\AbstractRector;
1213
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
@@ -15,7 +16,7 @@
1516
/**
1617
* @deprecated as this assert method was removed in PHPUnit 10 @see https://github.com/sebastianbergmann/phpunit/issues/4601
1718
*/
18-
final class AssertPropertyExistsRector extends AbstractRector
19+
final class AssertPropertyExistsRector extends AbstractRector implements DeprecatedInterface
1920
{
2021
public function getRuleDefinition(): RuleDefinition
2122
{

0 commit comments

Comments
 (0)