fixes after merge of master into upgrade-sf4

This commit is contained in:
2024-02-12 22:31:16 +01:00
parent 37af488f69
commit f889d67e94
664 changed files with 795 additions and 1980 deletions

View File

@@ -71,9 +71,7 @@ class AccompanyingPeriodDocGenNormalizer implements ContextAwareNormalizerInterf
'pinnedComment' => AccompanyingPeriod\Comment::class,
];
public function __construct(private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SocialIssueRender $socialIssueRender, private readonly ClosingMotiveRender $closingMotiveRender, private readonly ScopeResolverDispatcher $scopeResolverDispatcher)
{
}
public function __construct(private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SocialIssueRender $socialIssueRender, private readonly ClosingMotiveRender $closingMotiveRender, private readonly ScopeResolverDispatcher $scopeResolverDispatcher) {}
/**
* @param AccompanyingPeriod|null $period

View File

@@ -28,9 +28,7 @@ class AccompanyingPeriodResourceNormalizer implements DenormalizerAwareInterface
use ObjectToPopulateTrait;
public function __construct(private readonly ResourceRepository $repository)
{
}
public function __construct(private readonly ResourceRepository $repository) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -35,9 +35,7 @@ class AccompanyingPeriodWorkDenormalizer implements ContextAwareDenormalizerInte
final public const GROUP_EDIT = 'accompanying_period_work:edit';
public function __construct(private readonly AccompanyingPeriodWorkRepository $workRepository, private readonly EntityManagerInterface $em)
{
}
public function __construct(private readonly AccompanyingPeriodWorkRepository $workRepository, private readonly EntityManagerInterface $em) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -25,9 +25,7 @@ class AccompanyingPeriodWorkEvaluationDocumentNormalizer implements ContextAware
private const SKIP = 'accompanying_period_work_evaluation_document_skip';
public function __construct(private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry)
{
}
public function __construct(private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry) {}
public function normalize($object, ?string $format = null, array $context = []): array
{

View File

@@ -26,9 +26,7 @@ class AccompanyingPeriodWorkEvaluationNormalizer implements ContextAwareNormaliz
private const IGNORE_EVALUATION = 'evaluation:ignore';
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param AccompanyingPeriodWorkEvaluation $object

View File

@@ -28,9 +28,7 @@ class AccompanyingPeriodWorkNormalizer implements ContextAwareNormalizerInterfac
private const IGNORE_WORK = 'ignore:work';
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly EntityWorkflowRepository $entityWorkflowRepository, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param AccompanyingPeriodWork $object

View File

@@ -27,9 +27,7 @@ class MembersEditorNormalizer implements DenormalizerAwareInterface, Denormalize
{
use DenormalizerAwareTrait;
public function __construct(private readonly MembersEditorFactory $factory)
{
}
public function __construct(private readonly MembersEditorFactory $factory) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -40,9 +40,7 @@ class PersonDocGenNormalizer implements
private const CIRCULAR_KEY = 'person:circular';
public function __construct(private readonly PersonRenderInterface $personRender, private readonly RelationshipRepository $relationshipRepository, private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SummaryBudgetInterface $summaryBudget)
{
}
public function __construct(private readonly PersonRenderInterface $personRender, private readonly RelationshipRepository $relationshipRepository, private readonly TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, private readonly SummaryBudgetInterface $summaryBudget) {}
public function normalize($person, $format = null, array $context = [])
{

View File

@@ -48,8 +48,7 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar
private readonly CenterResolverManagerInterface $centerResolverManager,
private readonly ResidentialAddressRepository $residentialAddressRepository,
private readonly PhoneNumberHelperInterface $phoneNumberHelper
) {
}
) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -19,6 +19,4 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
*/
interface PersonJsonNormalizerInterface extends
DenormalizerInterface,
NormalizerInterface
{
}
NormalizerInterface {}

View File

@@ -22,9 +22,7 @@ class RelationshipDocGenNormalizer implements ContextAwareNormalizerInterface, N
{
use NormalizerAwareTrait;
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper)
{
}
public function __construct(private readonly TranslatableStringHelperInterface $translatableStringHelper) {}
/**
* @param Relationship $relation

View File

@@ -21,9 +21,7 @@ class SocialActionNormalizer implements NormalizerAwareInterface, NormalizerInte
{
use NormalizerAwareTrait;
public function __construct(private readonly SocialActionRender $render)
{
}
public function __construct(private readonly SocialActionRender $render) {}
public function normalize($socialAction, $format = null, array $context = [])
{

View File

@@ -21,9 +21,7 @@ class SocialIssueNormalizer implements ContextAwareNormalizerInterface, Normaliz
{
use NormalizerAwareTrait;
public function __construct(private readonly SocialIssueRender $render)
{
}
public function __construct(private readonly SocialIssueRender $render) {}
public function normalize($socialIssue, $format = null, array $context = [])
{

View File

@@ -25,9 +25,7 @@ class WorkflowNormalizer implements ContextAwareNormalizerInterface, NormalizerA
private const IGNORE_ENTITY_WORKFLOW = 'ignore:entity_workflow';
public function __construct(private readonly Registry $registry, private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly Registry $registry, private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param EntityWorkflow $object