From 0d17121ebab9c31656fef120c3e5e596ef4d2663 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Thu, 1 Oct 2026 13:59:29 +0200 Subject: [PATCH] AssertEmptyIsDiscouragedRule: use unique error identifier --- src/Rules/PHPUnit/AssertEmptyIsDiscouragedRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rules/PHPUnit/AssertEmptyIsDiscouragedRule.php b/src/Rules/PHPUnit/AssertEmptyIsDiscouragedRule.php index 61ab735..5459e26 100644 --- a/src/Rules/PHPUnit/AssertEmptyIsDiscouragedRule.php +++ b/src/Rules/PHPUnit/AssertEmptyIsDiscouragedRule.php @@ -45,7 +45,7 @@ public function processNode(Node $node, Scope $scope): array return [ RuleErrorBuilder::message(sprintf('%s() is not allowed. Use more strict assertion.', $node->name->toString())) - ->identifier('empty.notAllowed') + ->identifier('phpunit.assertEmpty') ->build(), ]; }