Skip to content

Commit e4f9e98

Browse files
Merge branch '5.4' into 6.0
* 5.4: [DoctrineBridge] fix tests [HttpKernel] Fix session test cases for symfony [FrameworkBundle] Fix missing arguments when a serialization default context is bound
2 parents f8edbc9 + 11b0d38 commit e4f9e98

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Resources/config/serializer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
->tag('serializer.normalizer', ['priority' => -910])
9898

9999
->set('serializer.normalizer.json_serializable', JsonSerializableNormalizer::class)
100+
->args([null, null])
100101
->tag('serializer.normalizer', ['priority' => -900])
101102

102103
->set('serializer.normalizer.problem', ProblemNormalizer::class)
@@ -176,6 +177,7 @@
176177
->tag('serializer.encoder')
177178

178179
->set('serializer.encoder.yaml', YamlEncoder::class)
180+
->args([null, null])
179181
->tag('serializer.encoder')
180182

181183
->set('serializer.encoder.csv', CsvEncoder::class)

Tests/Functional/app/Serializer/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ imports:
22
- { resource: ../config/default.yml }
33

44
framework:
5-
serializer: { enabled: true }
5+
serializer:
6+
enabled: true
7+
default_context:
8+
enable_max_depth: true
69
property_info: { enabled: true }
710

811
services:

0 commit comments

Comments
 (0)