diff --git a/rules/Naming/ExpectedNameResolver/MatchPropertyTypeExpectedNameResolver.php b/rules/Naming/ExpectedNameResolver/MatchPropertyTypeExpectedNameResolver.php index c79c0f84869..1d0aa0398d8 100644 --- a/rules/Naming/ExpectedNameResolver/MatchPropertyTypeExpectedNameResolver.php +++ b/rules/Naming/ExpectedNameResolver/MatchPropertyTypeExpectedNameResolver.php @@ -52,8 +52,6 @@ public function resolve(Property $property, ClassLike $classLike): ?string return null; } - $propertyName = $this->nodeNameResolver->getName($property); - // skip if already has suffix if (str_ends_with($propertyName, $expectedName->getName()) || str_ends_with( $propertyName,