Skip to content

Commit 74e2bf5

Browse files
committed
Optimization of resolveEnvPlaceholders
1 parent ba94559 commit 74e2bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ContainerBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ public function resolveEnvPlaceholders($value, $format = null, array &$usedEnvs
14131413
return $result;
14141414
}
14151415

1416-
if (!\is_string($value) || 38 > \strlen($value)) {
1416+
if (!\is_string($value) || 38 > \strlen($value) || !preg_match('/env[_(]/i', $value)) {
14171417
return $value;
14181418
}
14191419
$envPlaceholders = $bag instanceof EnvPlaceholderParameterBag ? $bag->getEnvPlaceholders() : $this->envPlaceholders;

0 commit comments

Comments
 (0)