Skip to content

Commit 53d5097

Browse files
committed
🧙‍♂️
1 parent 4122acf commit 53d5097

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/ServiceLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function locate(
2323
\Spameri\Elastic\Entity\ElasticEntityInterface $entity,
2424
): \Spameri\Elastic\Model\ServiceInterface
2525
{
26-
$entityName = \get_class($entity);
26+
$entityName = $entity::class;
2727
$serviceName = \str_replace('Entity', 'Model', $entityName . 'Service');
2828

2929
/** @var \Spameri\Elastic\Model\ServiceInterface $service */

0 commit comments

Comments
 (0)