File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/Symfony/Component/Serializer/Tests/Normalizer Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ public function testDenormalizeWithNestedAttributesWithoutMetadata()
142
142
143
143
public function testDenormalizeWithSnakeCaseNestedAttributes ()
144
144
{
145
- $ factory = new ClassMetadataFactory (new AnnotationLoader (new AnnotationReader () ));
145
+ $ factory = new ClassMetadataFactory (new AnnotationLoader ());
146
146
$ normalizer = new ObjectNormalizer ($ factory , new CamelCaseToSnakeCaseNameConverter ());
147
147
$ data = [
148
148
'one ' => [
@@ -155,7 +155,7 @@ public function testDenormalizeWithSnakeCaseNestedAttributes()
155
155
156
156
public function testNormalizeWithSnakeCaseNestedAttributes ()
157
157
{
158
- $ factory = new ClassMetadataFactory (new AnnotationLoader (new AnnotationReader () ));
158
+ $ factory = new ClassMetadataFactory (new AnnotationLoader ());
159
159
$ normalizer = new ObjectNormalizer ($ factory , new CamelCaseToSnakeCaseNameConverter ());
160
160
$ dummy = new SnakeCaseNestedDummy ();
161
161
$ dummy ->fooBar = 'fooBar ' ;
@@ -866,9 +866,7 @@ public function __construct(
866
866
867
867
class SnakeCaseNestedDummy
868
868
{
869
- /**
870
- * @SerializedPath("[one][two_three]")
871
- */
869
+ #[SerializedPath('[one][two_three] ' )]
872
870
public $ fooBar ;
873
871
}
874
872
You can’t perform that action at this time.
0 commit comments