apply rules rector up to php82

This commit is contained in:
2023-05-01 21:39:45 +02:00
parent 81e8928344
commit 6d63177ff4
733 changed files with 1257 additions and 1322 deletions

View File

@@ -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(...)),
];
}