File tree 2 files changed +4
-11
lines changed
src/Symfony/Component/Serializer/Tests/Normalizer/Features
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ class ContextChildMetadataDummy
121
121
* @var \DateTime
122
122
*/
123
123
#[Groups(['extended ' , 'simple ' ])]
124
- #[Context ([DateTimeNormalizer::FORMAT_KEY => \DateTimeInterface::RFC3339 ])]
125
- #[Context (
124
+ #[DummyContextChild ([DateTimeNormalizer::FORMAT_KEY => \DateTimeInterface::RFC3339 ])]
125
+ #[DummyContextChild (
126
126
normalizationContext: [DateTimeNormalizer::FORMAT_KEY => \DateTimeInterface::RFC3339_EXTENDED ],
127
127
groups: ['extended ' ],
128
128
)]
129
- #[Context (
129
+ #[DummyContextChild (
130
130
denormalizationContext: [DateTimeNormalizer::FORMAT_KEY => 'd/m/Y ' ],
131
131
groups: ['simple ' ],
132
132
)]
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \Component \Serializer \Annotation \Context ;
15
15
16
- /**
17
- * Annotation class for @DummyContextChild().
18
- *
19
- * @Annotation
20
- * @NamedArgumentConstructor
21
- * @Target({"PROPERTY", "METHOD"})
22
- */
23
- #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY )]
16
+ #[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_PROPERTY | \Attribute::IS_REPEATABLE )]
24
17
class DummyContextChild extends Context
25
18
{
26
19
}
You can’t perform that action at this time.
0 commit comments