Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit03f4233

Browse files
committed
cs
1 parent529b015 commit03f4233

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
publicfunctionsetSerializer(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
publicfunctionsetSerializer(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
publicfunction__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
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
useSymfony\Component\Serializer\Encoder\JsonEncoder;
1717
useSymfony\Component\Serializer\Normalizer\ArrayDenormalizer;
1818
useSymfony\Component\Serializer\Normalizer\ChainDenormalizer;
19-
useSymfony\Component\Serializer\Normalizer\ChainNormalizer;
2019
useSymfony\Component\Serializer\Normalizer\ObjectNormalizer;
2120
useSymfony\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 =newChainNormalizer([newCustomNormalizer()]);
426426
$serializer =newSerializer([], ['xml' =>$this->encoder],$normalizer);
427427

428-
429428
$expected = <<<'XML'
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 =newClassDiscriminatorFromClassMetadata($loaderMock);
521521
$normalizer =newAbstractObjectNormalizerDummy($factory,null,newPhpDocExtractor(),$discriminatorResolver);
522-
$serializer =newSerializer([], [],null,newChainDenormalizer([$normalizer]));
522+
$serializer =newSerializer([], [],null,newChainDenormalizer([$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 =newClassMetadataFactory(newAttributeLoader());
848848

849849
$normalizers = [newObjectNormalizer($classMetadataFactory,null,null,newReflectionExtractor(),newClassDiscriminatorFromClassMetadata($classMetadataFactory))];
850+
850851
returnnewSerializer([], ['json' =>newJsonEncoder()],newChainNormalizer($normalizers),newChainDenormalizer($normalizers));
851852
}
852853

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp