Skip to content

Commit 7c61054

Browse files
committed
DoctrineUsageProvider: minor simplification
1 parent 58ef3d3 commit 7c61054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Provider/DoctrineUsageProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private function getUsagesFromReflection(
7777

7878
$usages = [
7979
...$usages,
80-
...$this->getUsagesOfEnumColumn($classReflection->getName(), $propertyName, $propertyReflection),
80+
...$this->getUsagesOfEnumColumn($classReflection->getName(), $propertyReflection),
8181
];
8282
}
8383

@@ -266,11 +266,11 @@ private function createMethodUsage(
266266
*/
267267
private function getUsagesOfEnumColumn(
268268
string $className,
269-
string $propertyName,
270269
ExtendedPropertyReflection $property
271270
): array
272271
{
273272
$usages = [];
273+
$propertyName = $property->getName();
274274

275275
foreach ($property->getAttributes() as $attribute) {
276276
if ($attribute->getName() !== 'Doctrine\ORM\Mapping\Column') {

0 commit comments

Comments
 (0)