From 25f93e8a89a9a662ab62be43a154e9448cd5dee8 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 12 Feb 2024 18:55:00 +0100 Subject: [PATCH] fix typing --- .../ChillMainBundle/Templating/Entity/UserRender.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php b/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php index 170116f04..d0db6cddd 100644 --- a/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php +++ b/src/Bundle/ChillMainBundle/Templating/Entity/UserRender.php @@ -12,7 +12,7 @@ declare(strict_types=1); namespace Chill\MainBundle\Templating\Entity; use Chill\MainBundle\Entity\User; -use Chill\MainBundle\Templating\TranslatableStringHelper; +use Chill\MainBundle\Templating\TranslatableStringHelperInterface; use DateTime; use Monolog\DateTimeImmutable; use Symfony\Component\Clock\ClockInterface; @@ -34,7 +34,7 @@ class UserRender implements ChillEntityRenderInterface ]; public function __construct( - private readonly TranslatableStringHelper $translatableStringHelper, + private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly \Twig\Environment $engine, private readonly TranslatorInterface $translator, private readonly ClockInterface $clock, @@ -42,7 +42,7 @@ class UserRender implements ChillEntityRenderInterface } /** - * @param array{main_scope?: bool, user_job?: bool, absence?: bool, at_date?: DateTimeImmutable|\DateTime|null} $options + * @param array{main_scope?: bool, user_job?: bool, absence?: bool, at_date?: DateTimeImmutable|DateTime|null} $options * * @throws LoaderError * @throws RuntimeError @@ -54,7 +54,7 @@ class UserRender implements ChillEntityRenderInterface if (null === $opts['at_date']) { $opts['at_date'] = $this->clock->now(); - } elseif ($opts['at_date'] instanceof \DateTime) { + } elseif ($opts['at_date'] instanceof DateTime) { $opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']); } @@ -75,7 +75,7 @@ class UserRender implements ChillEntityRenderInterface if (null === $opts['at_date']) { $opts['at_date'] = $this->clock->now(); - } elseif ($opts['at_date'] instanceof \DateTime) { + } elseif ($opts['at_date'] instanceof DateTime) { $opts['at_date'] = DateTimeImmutable::createFromMutable($opts['at_date']); }