Skip to content

Commit be5dd55

Browse files
committed
add proper defaults
1 parent 77a2937 commit be5dd55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2404,6 +2404,7 @@ private function addSerDesSection(ArrayNodeDefinition $rootNode, callable $enabl
24042404
->info('Defines where to find serializable classes.')
24052405
->beforeNormalization()->ifString()->then(function ($v) { return [$v]; })->end()
24062406
->prototype('scalar')->end()
2407+
->defaultValue([])
24072408
->end()
24082409
->arrayNode('template_warm_up')
24092410
->addDefaultsIfNotSet()
@@ -2413,6 +2414,7 @@ private function addSerDesSection(ArrayNodeDefinition $rootNode, callable $enabl
24132414
->info('Defines the formats that will be handled.')
24142415
->beforeNormalization()->ifString()->then(function ($v) { return [$v]; })->end()
24152416
->prototype('scalar')->end()
2417+
->defaultValue(['json'])
24162418
->end()
24172419
->end()
24182420
->end()

0 commit comments

Comments
 (0)