This commit is contained in:
2024-06-11 16:58:33 +02:00
parent 9ec4c77fb7
commit 0bfb3de465
5 changed files with 9 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ class UserRender implements ChillEntityRenderInterface
if (null === $opts['at_date']) {
$opts['at_date'] = $this->clock->now();
} elseif ($opts['at_date'] instanceof \DateTime) {
$opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']);
$opts['at_date'] = \DateTimeImmutable::createFromMutable($opts['at_date']);
}
return $this->engine->render('@ChillMain/Entity/user.html.twig', [
@@ -71,7 +71,7 @@ class UserRender implements ChillEntityRenderInterface
if (null === $opts['at_date']) {
$opts['at_date'] = $this->clock->now();
} elseif ($opts['at_date'] instanceof \DateTime) {
$opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']);
$opts['at_date'] = \DateTimeImmutable::createFromMutable($opts['at_date']);
}
$str = $entity->getLabel();