apply rector rules

This commit is contained in:
2023-07-28 02:40:02 +02:00
parent 157cdf6dfc
commit f570fe92a5
112 changed files with 252 additions and 562 deletions

View File

@@ -22,7 +22,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
*/
class ChoiceWithOtherType extends AbstractType
{
private $otherValueLabel = 'Other value';
private string $otherValueLabel = 'Other value';
/** (non-PHPdoc).
* @see \Symfony\Component\Form\AbstractType::buildForm()

View File

@@ -32,19 +32,15 @@ class LinkedCustomFieldsType extends AbstractType
* The name for the choice field.
*
* Extracted from builder::getName
*
* @var string
*/
private $choiceName = 'choice';
private string $choiceName = 'choice';
/**
* the option of the form.
*
* @internal options are stored at the class level to be reused by appendChoice, after data are setted
*
* @var array
*/
private $options = [];
private array $options = [];
public function __construct(private readonly TranslatableStringHelper $translatableStringHelper)
{