mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 10:05:03 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -38,7 +38,7 @@ class CustomFieldRenderingTwig extends AbstractExtension implements ContainerAwa
|
||||
'label_layout' => 'ChillCustomFieldsBundle:CustomField:render_label.html.twig',
|
||||
];
|
||||
|
||||
public function __construct(private CustomFieldsHelper $customFieldsHelper)
|
||||
public function __construct(private readonly CustomFieldsHelper $customFieldsHelper)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -50,26 +50,17 @@ class CustomFieldRenderingTwig extends AbstractExtension implements ContainerAwa
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new TwigFunction('chill_custom_field_widget', [
|
||||
$this,
|
||||
'renderWidget',
|
||||
], [
|
||||
new TwigFunction('chill_custom_field_widget', $this->renderWidget(...), [
|
||||
'is_safe' => [
|
||||
'html',
|
||||
],
|
||||
]),
|
||||
new TwigFunction('chill_custom_field_label', [
|
||||
$this,
|
||||
'renderLabel',
|
||||
], [
|
||||
new TwigFunction('chill_custom_field_label', $this->renderLabel(...), [
|
||||
'is_safe' => [
|
||||
'html',
|
||||
],
|
||||
]),
|
||||
new TwigFunction('chill_custom_field_is_empty', [
|
||||
$this,
|
||||
'isEmptyValue',
|
||||
]),
|
||||
new TwigFunction('chill_custom_field_is_empty', $this->isEmptyValue(...)),
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user