fix rector errors

This commit is contained in:
Julien Fastré 2024-09-13 16:22:09 +02:00
parent 8e984f2006
commit 911dfc2878
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 3 additions and 6 deletions

View File

@ -19,7 +19,7 @@ use Twig\TwigFilter;
*/ */
class ChillEntityRenderExtension extends AbstractExtension class ChillEntityRenderExtension extends AbstractExtension
{ {
public function __construct(private ChillEntityRenderManagerInterface $renderManager) {} public function __construct(private readonly ChillEntityRenderManagerInterface $renderManager) {}
/** /**
* @return array|TwigFilter[] * @return array|TwigFilter[]

View File

@ -15,15 +15,12 @@ final readonly class ChillEntityRenderManager implements ChillEntityRenderManage
{ {
private ChillEntityRender $defaultRender; private ChillEntityRender $defaultRender;
/** public function __construct(/**
* @var iterable<ChillEntityRenderInterface> * @var iterable<ChillEntityRenderInterface>
*/ */
private iterable $renders; private iterable $renders)
public function __construct(iterable $renders)
{ {
$this->defaultRender = new ChillEntityRender(); $this->defaultRender = new ChillEntityRender();
$this->renders = $renders;
} }
public function renderBox($entity, array $options = []): string public function renderBox($entity, array $options = []): string