diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderExtension.php b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderExtension.php index 8a9e70229..cc2664f55 100644 --- a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderExtension.php +++ b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderExtension.php @@ -19,7 +19,7 @@ use Twig\TwigFilter; */ class ChillEntityRenderExtension extends AbstractExtension { - public function __construct(private ChillEntityRenderManagerInterface $renderManager) {} + public function __construct(private readonly ChillEntityRenderManagerInterface $renderManager) {} /** * @return array|TwigFilter[] diff --git a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderManager.php b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderManager.php index 6437a9c24..51315a6d6 100644 --- a/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderManager.php +++ b/src/Bundle/ChillMainBundle/Templating/Entity/ChillEntityRenderManager.php @@ -15,15 +15,12 @@ final readonly class ChillEntityRenderManager implements ChillEntityRenderManage { private ChillEntityRender $defaultRender; - /** + public function __construct(/** * @var iterable */ - private iterable $renders; - - public function __construct(iterable $renders) + private iterable $renders) { $this->defaultRender = new ChillEntityRender(); - $this->renders = $renders; } public function renderBox($entity, array $options = []): string