Skip to content

Commit 03b33de

Browse files
authored
Update HitCounterDtoAssembler.php
1 parent ce85ebd commit 03b33de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/HitCounterDtoAssembler.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public function __construct($entityClass = HitCounter::class)
2525

2626
public function readDto(HitDto $dto)
2727
{
28-
$hit = $this->entityClass::create(
28+
$class = $this->entityClass;
29+
$hit = $class::create(
2930
$dto->getCounterId(),
3031
$dto->getCookieMark(),
3132
$dto->getJsCookeiEnabled(),

0 commit comments

Comments
 (0)