mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
apply rector rules: php up to php82
This commit is contained in:
@@ -22,7 +22,7 @@ use Psr\Log\LoggerInterface;
|
||||
|
||||
class OldDraftAccompanyingPeriodRemover implements OldDraftAccompanyingPeriodRemoverInterface
|
||||
{
|
||||
public function __construct(private EntityManagerInterface $em, private LoggerInterface $logger)
|
||||
public function __construct(private readonly EntityManagerInterface $em, private readonly LoggerInterface $logger)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -52,16 +52,16 @@ class AccompanyingPeriodContext implements
|
||||
DocGeneratorContextWithPublicFormInterface
|
||||
{
|
||||
public function __construct(
|
||||
private DocumentCategoryRepository $documentCategoryRepository,
|
||||
private NormalizerInterface $normalizer,
|
||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private EntityManagerInterface $em,
|
||||
private PersonRenderInterface $personRender,
|
||||
private PersonRepository $personRepository,
|
||||
private TranslatorInterface $translator,
|
||||
private BaseContextData $baseContextData,
|
||||
private ThirdPartyRender $thirdPartyRender,
|
||||
private ThirdPartyRepository $thirdPartyRepository
|
||||
private readonly DocumentCategoryRepository $documentCategoryRepository,
|
||||
private readonly NormalizerInterface $normalizer,
|
||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly PersonRenderInterface $personRender,
|
||||
private readonly PersonRepository $personRepository,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly BaseContextData $baseContextData,
|
||||
private readonly ThirdPartyRender $thirdPartyRender,
|
||||
private readonly ThirdPartyRepository $thirdPartyRepository
|
||||
) {
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
*/
|
||||
class AccompanyingPeriodWorkContext implements DocGeneratorContextWithPublicFormInterface
|
||||
{
|
||||
public function __construct(private AccompanyingPeriodContext $periodContext, private NormalizerInterface $normalizer)
|
||||
public function __construct(private readonly AccompanyingPeriodContext $periodContext, private readonly NormalizerInterface $normalizer)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class AccompanyingPeriodWorkEvaluationContext implements
|
||||
DocGeneratorContextWithAdminFormInterface,
|
||||
DocGeneratorContextWithPublicFormInterface
|
||||
{
|
||||
public function __construct(private AccompanyingPeriodWorkContext $accompanyingPeriodWorkContext, private EntityManagerInterface $em, private EvaluationRepository $evaluationRepository, private NormalizerInterface $normalizer, private TranslatableStringHelperInterface $translatableStringHelper, private ThirdPartyRender $thirdPartyRender, private TranslatorInterface $translator)
|
||||
public function __construct(private readonly AccompanyingPeriodWorkContext $accompanyingPeriodWorkContext, private readonly EntityManagerInterface $em, private readonly EvaluationRepository $evaluationRepository, private readonly NormalizerInterface $normalizer, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly ThirdPartyRender $thirdPartyRender, private readonly TranslatorInterface $translator)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -56,23 +56,23 @@ use function count;
|
||||
*/
|
||||
final class PersonContext implements PersonContextInterface
|
||||
{
|
||||
private bool $showScopes;
|
||||
private readonly bool $showScopes;
|
||||
|
||||
public function __construct(
|
||||
private AuthorizationHelperInterface $authorizationHelper,
|
||||
private BaseContextData $baseContextData,
|
||||
private CenterResolverManagerInterface $centerResolverManager,
|
||||
private DocumentCategoryRepository $documentCategoryRepository,
|
||||
private EntityManagerInterface $em,
|
||||
private NormalizerInterface $normalizer,
|
||||
private readonly AuthorizationHelperInterface $authorizationHelper,
|
||||
private readonly BaseContextData $baseContextData,
|
||||
private readonly CenterResolverManagerInterface $centerResolverManager,
|
||||
private readonly DocumentCategoryRepository $documentCategoryRepository,
|
||||
private readonly EntityManagerInterface $em,
|
||||
private readonly NormalizerInterface $normalizer,
|
||||
ParameterBagInterface $parameterBag,
|
||||
private ScopeRepositoryInterface $scopeRepository,
|
||||
private Security $security,
|
||||
private TranslatorInterface $translator,
|
||||
private TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private ThirdPartyRender $thirdPartyRender,
|
||||
private ThirdPartyRepository $thirdPartyRepository,
|
||||
private ResidentialAddressRepository $residentialAddressRepository
|
||||
private readonly ScopeRepositoryInterface $scopeRepository,
|
||||
private readonly Security $security,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly TranslatableStringHelperInterface $translatableStringHelper,
|
||||
private readonly ThirdPartyRender $thirdPartyRender,
|
||||
private readonly ThirdPartyRepository $thirdPartyRepository,
|
||||
private readonly ResidentialAddressRepository $residentialAddressRepository
|
||||
) {
|
||||
$this->showScopes = $parameterBag->get('chill_main')['acl']['form_show_scopes'];
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
|
||||
*/
|
||||
class PersonContextWithThirdParty implements DocGeneratorContextWithAdminFormInterface, DocGeneratorContextWithPublicFormInterface
|
||||
{
|
||||
public function __construct(private PersonContextInterface $personContext, private NormalizerInterface $normalizer, private ThirdPartyRepository $thirdPartyRepository)
|
||||
public function __construct(private readonly PersonContextInterface $personContext, private readonly NormalizerInterface $normalizer, private readonly ThirdPartyRepository $thirdPartyRepository)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -19,8 +19,8 @@ class AccompanyingPeriodViewEntityInfoProvider implements ViewEntityInfoProvider
|
||||
/**
|
||||
* @var AccompanyingPeriodInfoUnionQueryPartInterface[]
|
||||
*/
|
||||
private iterable $unions,
|
||||
private AccompanyingPeriodInfoQueryBuilder $builder,
|
||||
private readonly iterable $unions,
|
||||
private readonly AccompanyingPeriodInfoQueryBuilder $builder,
|
||||
) {
|
||||
}
|
||||
|
||||
|
@@ -28,7 +28,7 @@ use Exception;
|
||||
|
||||
use function count;
|
||||
|
||||
final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
final readonly class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
{
|
||||
public function __construct(private SocialIssueRepository $socialIssueRepository, private SocialActionRepository $socialActionRepository, private GoalRepository $goalRepository, private ResultRepository $resultRepository, private EvaluationRepository $evaluationRepository, private EntityManagerInterface $entityManager)
|
||||
{
|
||||
|
Reference in New Issue
Block a user