Remove unnecessary if statement

This commit is contained in:
Pascal Thormeier 2015-06-30 10:35:58 +02:00
parent 2e1b67208d
commit 83199fbd65

View File

@ -540,11 +540,7 @@ class Template
$namedArguments = array();
foreach ($arguments->getNamedArguments() as $key => $value) {
if (false === $value instanceof String) {
$value = $context->get($value);
}
$namedArguments[$key] = $value;
$namedArguments[$key] = $context->get($value);
}
return array_merge($positionalArgs, $namedArguments);