Skip to content

Commit 7fdc013

Browse files
goetasGuilhemN
authored andcommitted
return the value to use after normalization (#1920)
1 parent a19baef commit 7fdc013

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,12 @@ public function getConfigTreeBuilder()
115115
->defaultFalse()
116116
->beforeNormalization()
117117
->ifTrue()
118-
->then(function () {
118+
->then(function ($value) {
119119
if (!class_exists(OptionsResolver::class)) {
120120
throw new InvalidConfigurationException("'body_converter.validate: true' requires OptionsResolver component installation ( composer require symfony/options-resolver )");
121121
}
122+
123+
return $value;
122124
})
123125
->end()
124126
->end()

0 commit comments

Comments
 (0)