Skip to content

Commit 35e0525

Browse files
bug #32365 [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Spotted in and needed by #32294 Commits ------- b06d0003a3 [DI] fix processing of regular parameter bags by MergeExtensionConfigurationPass
2 parents e907535 + 65bc9f1 commit 35e0525

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Compiler/MergeExtensionConfigurationPass.php

+4
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ public function resolveEnvPlaceholders($value, $format = null, array &$usedEnvs
186186
$bag = $this->getParameterBag();
187187
$value = $bag->resolveValue($value);
188188

189+
if (!$bag instanceof EnvPlaceholderParameterBag) {
190+
return parent::resolveEnvPlaceholders($value, $format, $usedEnvs);
191+
}
192+
189193
foreach ($bag->getEnvPlaceholders() as $env => $placeholders) {
190194
if (false === strpos($env, ':')) {
191195
continue;

0 commit comments

Comments
 (0)