8000 minor #51465 [Serializer] Remove ``@SerializedPath`` annotation from … · hhamon/symfony@609ec6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 609ec6b

Browse files
minor symfony#51465 [Serializer] Remove @SerializedPath annotation from test (alexandre-daubois)
This PR was merged into the 6.4 branch. Discussion ---------- [Serializer] Remove ``@SerializedPath`` annotation from test | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - After symfony#51455 (comment) Commits ------- e5f0bd9 [Serializer] Remove ``@SerializedPath`` annotation from test
2 parents 991d81e + e5f0bd9 commit 609ec6b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testDenormalizeWithNestedAttributesWithoutMetadata()
142142

143143
public function testDenormalizeWithSnakeCaseNestedAttributes()
144144
{
145-
$factory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
145+
$factory = new ClassMetadataFactory(new AnnotationLoader());
146146
$normalizer = new ObjectNormalizer($factory, new CamelCaseToSnakeCaseNameConverter());
147147
$data = [
148148
'one' => [
@@ -155,7 +155,7 @@ public function testDenormalizeWithSnakeCaseNestedAttributes()
155155

156156
public function testNormalizeWithSnakeCaseNestedAttributes()
157157
{
158-
$factory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
158+
$factory = new ClassMetadataFactory(new AnnotationLoader());
159159
$normalizer = new ObjectNormalizer($factory, new CamelCaseToSnakeCaseNameConverter());
160160
$dummy = new SnakeCaseNestedDummy();
161161
$dummy->fooBar = 'fooBar';
@@ -866,9 +866,7 @@ public function __construct(
866866

867867
class SnakeCaseNestedDummy
868868
{
869-
/**
870-
* @SerializedPath("[one][two_three]")
871-
*/
869+
#[SerializedPath('[one][two_three]')]
872870
public $fooBar;
873871
}
874872

0 commit comments

Comments
 (0)
0