File tree 2 files changed +8
-7
lines changed
src/Symfony/Component/Serializer
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 17
17
* Annotation class for @Groups().
18
18
*
19
19
* @Annotation
20
+ *
20
21
* @NamedArgumentConstructor
22
+ *
21
23
* @Target({"PROPERTY", "METHOD", "CLASS"})
22
24
*
23
25
* @author Kévin Dunglas <dunglas@gmail.com>
Original file line number Diff line number Diff line change 55
55
use Symfony \Component \Serializer \Tests \Fixtures \Annotations \AbstractDummy ;
56
56
use Symfony \Component \Serializer \Tests \Fixtures \Annotations \AbstractDummyFirstChild ;
57
57
use Symfony \Component \Serializer \Tests \Fixtures \Annotations \AbstractDummySecondChild ;
58
- use Symfony \Component \Serializer \Tests \Fixtures ;
59
58
use Symfony \Component \Serializer \Tests \Fixtures \DummyFirstChildQuux ;
60
59
use Symfony \Component \Serializer \Tests \Fixtures \DummyMessageInterface ;
61
60
use Symfony \Component \Serializer \Tests \Fixtures \DummyMessageNumberOne ;
@@ -1232,19 +1231,19 @@ public function testNoCollectDenormalizationErrorsWithWrongEnum()
1232
1231
public function testGroupsOnClassSerialization ()
1233
1232
{
1234
1233
$ obj = new Fixtures \Attributes \GroupClassDummy ();
1235
- $ obj ->setFoo (" foo " );
1236
- $ obj ->setBar (" bar " );
1234
+ $ obj ->setFoo (' foo ' );
1235
+ $ obj ->setBar (' bar ' );
1237
1236
1238
1237
$ obj2 = new Fixtures \Annotations \GroupClassDummy ();
1239
- $ obj2 ->setFoo (" foo " );
1240
- $ obj2 ->setBar (" bar " );
1238
+ $ obj2 ->setFoo (' foo ' );
1239
+ $ obj2 ->setBar (' bar ' );
1241
1240
1242
1241
$ serializer = new Serializer (
1243
1242
[
1244
- new ObjectNormalizer ()
1243
+ new ObjectNormalizer (),
1245
1244
],
1246
1245
[
1247
- 'json ' => new JsonEncoder ()
1246
+ 'json ' => new JsonEncoder (),
1248
1247
]
1249
1248
);
1250
1249
You can’t perform that action at this time.
0 commit comments