From 3b23de7d2cc1d3cdc2556a871c13eb7b3bdbbed6 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 5 Jun 2024 05:29:53 +0700 Subject: [PATCH] Clean up redefinition propertyName variable on MatchPropertyTypeExpectedNameResolver (#5942) --- .../MatchPropertyTypeExpectedNameResolver.php | 2 -- 1 file changed, 2 deletions(-) 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,