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

@@ -47,9 +47,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
'confidential',
];
public function __construct(private readonly AddressRender $addressRender)
{
}
public function __construct(private readonly AddressRender $addressRender) {}
/**
* @param Address $address

View File

@@ -20,9 +20,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class CenterNormalizer implements DenormalizerInterface, NormalizerInterface
{
public function __construct(private readonly CenterRepository $repository)
{
}
public function __construct(private readonly CenterRepository $repository) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -23,9 +23,7 @@ class CommentEmbeddableDocGenNormalizer implements ContextAwareNormalizerInterfa
{
use NormalizerAwareTrait;
public function __construct(private readonly UserRepository $userRepository)
{
}
public function __construct(private readonly UserRepository $userRepository) {}
/**
* @param CommentEmbeddable $object

View File

@@ -20,9 +20,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class DateNormalizer implements ContextAwareNormalizerInterface, DenormalizerInterface
{
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag)
{
}
public function __construct(private readonly RequestStack $requestStack, private readonly ParameterBagInterface $parameterBag) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -19,9 +19,7 @@ use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
class DoctrineExistingEntityNormalizer implements DenormalizerInterface
{
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory)
{
}
public function __construct(private readonly EntityManagerInterface $em, private readonly ClassMetadataFactoryInterface $serializerMetadataFactory) {}
public function denormalize($data, $type, $format = null, array $context = [])
{

View File

@@ -23,9 +23,7 @@ class EntityWorkflowNormalizer implements NormalizerInterface, NormalizerAwareIn
{
use NormalizerAwareTrait;
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry)
{
}
public function __construct(private readonly EntityWorkflowManager $entityWorkflowManager, private readonly MetadataExtractor $metadataExtractor, private readonly Registry $registry) {}
/**
* @param EntityWorkflow $object

View File

@@ -21,9 +21,7 @@ class EntityWorkflowStepNormalizer implements NormalizerAwareInterface, Normaliz
{
use NormalizerAwareTrait;
public function __construct(private readonly MetadataExtractor $metadataExtractor)
{
}
public function __construct(private readonly MetadataExtractor $metadataExtractor) {}
/**
* @param EntityWorkflowStep $object

View File

@@ -23,9 +23,7 @@ class NotificationNormalizer implements NormalizerAwareInterface, NormalizerInte
{
use NormalizerAwareTrait;
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security)
{
}
public function __construct(private readonly NotificationHandlerManager $notificationHandlerManager, private readonly EntityManagerInterface $entityManager, private readonly Security $security) {}
/**
* @param Notification $object

View File

@@ -18,9 +18,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
class PrivateCommentEmbeddableNormalizer implements NormalizerInterface, DenormalizerInterface
{
public function __construct(private readonly Security $security)
{
}
public function __construct(private readonly Security $security) {}
public function denormalize($data, string $type, ?string $format = null, array $context = []): PrivateCommentEmbeddable
{

View File

@@ -38,9 +38,7 @@ class UserNormalizer implements ContextAwareNormalizerInterface, NormalizerAware
'isAbsent' => false,
];
public function __construct(private readonly UserRender $userRender)
{
}
public function __construct(private readonly UserRender $userRender) {}
public function normalize($object, $format = null, array $context = [])
{