mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix rector errors
This commit is contained in:
parent
8e984f2006
commit
911dfc2878
@ -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[]
|
||||
|
@ -15,15 +15,12 @@ final readonly class ChillEntityRenderManager implements ChillEntityRenderManage
|
||||
{
|
||||
private ChillEntityRender $defaultRender;
|
||||
|
||||
/**
|
||||
public function __construct(/**
|
||||
* @var iterable<ChillEntityRenderInterface>
|
||||
*/
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user