Skip to content

Commit df3d0d7

Browse files
authored
DoctrineUsageProvider: minor simplification (#232)
1 parent 6f96c54 commit df3d0d7

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

@@ -323,11 +323,11 @@ private function createMethodUsage(
323323
*/
324324
private function getUsagesOfEnumColumn(
325325
string $className,
326-
string $propertyName,
327326
ExtendedPropertyReflection $property
328327
): array
329328
{
330329
$usages = [];
330+
$propertyName = $property->getName();
331331

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

0 commit comments

Comments
 (0)