Skip to content

Commit 3d030f9

Browse files
phpstan-botclaude
andcommitted
Fix lint: use import instead of fully qualified IdentifierRuleError reference
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4fd7a28 commit 3d030f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Rules/Classes/DuplicateDeclarationHelper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use PhpParser\Node\Stmt\TraitUse;
1010
use PhpParser\Node\Stmt\TraitUseAdaptation\Precedence;
1111
use PHPStan\Reflection\ClassReflection;
12+
use PHPStan\Rules\IdentifierRuleError;
1213
use PHPStan\Rules\RuleErrorBuilder;
1314
use PHPStan\ShouldNotHappenException;
1415
use function array_key_exists;
@@ -21,7 +22,7 @@ final class DuplicateDeclarationHelper
2122
{
2223

2324
/**
24-
* @return list<\PHPStan\Rules\IdentifierRuleError>
25+
* @return list<IdentifierRuleError>
2526
*/
2627
public static function checkClassLike(ClassLike $classLike, string $displayName, string $identifierType): array
2728
{
@@ -124,7 +125,7 @@ public static function checkClassLike(ClassLike $classLike, string $displayName,
124125
}
125126

126127
/**
127-
* @return list<\PHPStan\Rules\IdentifierRuleError>
128+
* @return list<IdentifierRuleError>
128129
*/
129130
public static function checkTraitMethodCollisions(ClassLike $classLike, ClassReflection $classReflection): array
130131
{

0 commit comments

Comments
 (0)