mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 12:33:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -20,19 +20,18 @@ class ConfigRepository
|
||||
*/
|
||||
protected $familialSituations;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $links;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $professionalSituations;
|
||||
|
||||
public function __construct($links, $professionnalSituations, $familialSituations)
|
||||
/**
|
||||
* @param mixed[] $links
|
||||
* @param mixed $professionnalSituations
|
||||
* @param mixed $familialSituations
|
||||
*/
|
||||
public function __construct(protected $links, $professionnalSituations, $familialSituations)
|
||||
{
|
||||
$this->links = $links;
|
||||
$this->professionalSituations = $professionnalSituations ?? [];
|
||||
$this->familialSituations = $familialSituations ?? [];
|
||||
}
|
||||
|
@@ -28,23 +28,14 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class FamilyMemberController extends AbstractController
|
||||
{
|
||||
protected LoggerInterface $chillMainLogger;
|
||||
|
||||
protected TranslatorInterface $translator;
|
||||
|
||||
private EntityManagerInterface $em;
|
||||
|
||||
private FamilyMemberRepository $familyMemberRepository;
|
||||
|
||||
public function __construct(
|
||||
EntityManagerInterface $entityManager,
|
||||
TranslatorInterface $translator,
|
||||
LoggerInterface $chillMainLogger,
|
||||
private EntityManagerInterface $em,
|
||||
protected TranslatorInterface $translator,
|
||||
protected LoggerInterface $chillMainLogger,
|
||||
FamilyMemberRepository $familyMemberRepository
|
||||
) {
|
||||
$this->em = $entityManager;
|
||||
$this->translator = $translator;
|
||||
$this->chillMainLogger = $chillMainLogger;
|
||||
$this->familyMemberRepository = $familyMemberRepository;
|
||||
}
|
||||
|
||||
|
@@ -25,22 +25,8 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class FamilyMemberType extends AbstractType
|
||||
{
|
||||
/**
|
||||
* @var ConfigRepository
|
||||
*/
|
||||
private $configRepository;
|
||||
|
||||
/**
|
||||
* @var TranslatableStringHelper
|
||||
*/
|
||||
private $translatableStringHelper;
|
||||
|
||||
public function __construct(
|
||||
ConfigRepository $configRepository,
|
||||
TranslatableStringHelper $translatableStringHelper
|
||||
) {
|
||||
$this->configRepository = $configRepository;
|
||||
$this->translatableStringHelper = $translatableStringHelper;
|
||||
public function __construct(private ConfigRepository $configRepository, private TranslatableStringHelper $translatableStringHelper)
|
||||
{
|
||||
}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
|
Reference in New Issue
Block a user