Skip to content

Commit 3550533

Browse files
committedJan 23, 2025
Fix PHPStan error on reflClass implementation
Closes #367
1 parent 2a71991 commit 3550533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Adapter/Doctrine/ORM/AutomaticQueryBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(EntityManagerInterface $em, ClassMetadata $metadata)
4646
$this->metadata = $metadata;
4747

4848
$this->entityName = $this->metadata->getName();
49-
$this->entityShortName = mb_strtolower($this->metadata->getReflectionClass()?->getShortName() ?? self::DEFAULT_ALIAS);
49+
$this->entityShortName = mb_strtolower($metadata->reflClass?->getShortName() ?? self::DEFAULT_ALIAS);
5050
}
5151

5252
public function process(QueryBuilder $builder, DataTableState $state): void

0 commit comments

Comments
 (0)