Optimization of resolveEnvPlaceholders

This commit is contained in:
vladimir.panivko 2021-12-31 14:11:59 +02:00
parent 1e76053f0c
commit f73b5aa479
1 changed files with 1 additions and 1 deletions

View File

@ -1413,7 +1413,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
return $result;
}
if (!\is_string($value) || 38 > \strlen($value)) {
if (!\is_string($value) || 38 > \strlen($value) || !preg_match('/env[_(]/i', $value)) {
return $value;
}
$envPlaceholders = $bag instanceof EnvPlaceholderParameterBag ? $bag->getEnvPlaceholders() : $this->envPlaceholders;