Skip to content

Commit

Permalink
Fix PHPStan error on reflClass implementation
Browse files Browse the repository at this point in the history
Closes #367
  • Loading branch information
curry684 committed Jan 23, 2025
1 parent 2a71991 commit 3550533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/Doctrine/ORM/AutomaticQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(EntityManagerInterface $em, ClassMetadata $metadata)
$this->metadata = $metadata;

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

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

0 comments on commit 3550533

Please sign in to comment.