DX: rector apply rules 'symfony up to 4.4

This commit is contained in:
2023-05-05 18:21:09 +02:00
parent f04ef9c931
commit efaa01f4f6
45 changed files with 75 additions and 74 deletions

View File

@@ -85,10 +85,7 @@ class CreateFieldsOnGroupCommand extends Command
}
}
/**
* @return int|void|null
*/
protected function execute(InputInterface $input, OutputInterface $output)
protected function execute(InputInterface $input, OutputInterface $output): int
{
$helper = $this->getHelperSet()->get('question');
@@ -138,6 +135,7 @@ class CreateFieldsOnGroupCommand extends Command
);
$fields = $this->_addFields($customFieldsGroup, $fieldsInput, $output);
return 0;
}
private function _addFields(CustomFieldsGroup $group, $values, OutputInterface $output)

View File

@@ -35,7 +35,7 @@ class CustomFieldLongChoice extends AbstractCustomField
public function __construct(
private readonly OptionRepository $optionRepository,
private readonly TranslatableStringHelper $translatableStringHelper,
private readonly EngineInterface $templating,
private readonly \Twig\Environment $templating,
) {
}