8000 cs · symfony/symfony@03f4233 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03f4233

Browse files
committed
cs
1 parent 529b015 commit 03f4233

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

src/Symfony/Component/Serializer/Normalizer/ChainDenormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ public function getSupportedTypes(?string $format): array
214214

215215
/**
216216
* This method exists only for BC reasons. Will be removed in 8.0.
217+
*
217218
* @internal
219+
*
218220
* @deprecated
219221
*/
220222
public function setSerializer(SerializerInterface $serializer): void

src/Symfony/Component/Serializer/Normalizer/ChainNormalizer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,11 @@ private function getNormalizer(mixed $data, ?string $format, array $context): ?N
195195
}
196196

197197
/**
198-
* @deprecated This method exists only for BC reasons. Will be removed in 8.0.
198+
* This method exists only for BC reasons. Will be removed in 8.0.
199+
*
200+
* @internal
201+
*
202+
* @deprecated
199203
*/
200204
public function setSerializer(SerializerInterface $serializer): void
201205
{

src/Symfony/Component/Serializer/Serializer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz
6262
* @param array<EncoderInterface|DecoderInterface> $encoders
6363
*/
6464
public function __construct(
65-
array $normalizers = [],
66-
array $encoders = [],
67-
NormalizerInterface $normalizer = null,
65+
array $normalizers = [],
66+
array $encoders = [],
67+
NormalizerInterface $normalizer = null,
6868
DenormalizerInterface $denormalizer = null,
6969
) {
7070
if ([] !== $normalizers && (null !== $normalizer || null !== $denormalizer)) {

src/Symfony/Component/Serializer/Tests/DeserializeNestedArrayOfObjectsTest.php

Lines changed: 0 additions & 1 deletion
8000
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\Serializer\Encoder\JsonEncoder;
1717
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
1818
use Symfony\Component\Serializer\Normalizer\ChainDenormalizer;
19-
use Symfony\Component\Serializer\Normalizer\ChainNormalizer;
2019
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
2120
use Symfony\Component\Serializer\Serializer;
2221

src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ public function testEncodeTraversableWhenNormalizable()
425425
$normalizer = new ChainNormalizer([new CustomNormalizer()]);
426426
$serializer = new Serializer([], ['xml' => $this->encoder], $normalizer);
427427

428-
429428
$expected = <<<'XML' 8000
430429
<?xml version="1.0"?>
431430
<response><foo>normalizedFoo</foo><bar>normalizedBar</bar></response>

src/Symfony/Component/Serializer/Tests/Normalizer/AbstractObjectNormalizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public function hasMetadataFor($value): bool
519519

520520
$discriminatorResolver = new ClassDiscriminatorFromClassMetadata($loaderMock);
521521
$normalizer = new AbstractObjectNormalizerDummy($factory, null, new PhpDocExtractor(), $discriminatorResolver);
522-
$serializer = new Serializer([], [], null, new ChainDenormalizer([$normalizer]));
522+
$serializer = new Serializer([], [], null, new ChainDenormalizer([$normalizer]));
523523
$normalizedData = $normalizer->denormalize(['foo' => 'foo', 'baz' => 'baz', 'quux' => ['value' => 'quux'], 'type' => 'second'], AbstractDummy::class);
524524

525525
$this->assertInstanceOf(DummySecondChildQuux::class, $normalizedData->quux);

src/Symfony/Component/Serializer/Tests/SerializerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,7 @@ private function serializerWithClassDiscriminator()
847847
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
848848

849849
$normalizers = [new ObjectNormalizer($classMetadataFactory, null, null, new ReflectionExtractor(), new ClassDiscriminatorFromClassMetadata($classMetadataFactory))];
850+
850851
return new Serializer([], ['json' => new JsonEncoder()], new ChainNormalizer($normalizers), new ChainDenormalizer($normalizers));
851852
}
852853

0 commit comments

Comments
 (0)
0