mirror of
https://github.com/Mibew/handlebars.php.git
synced 2024-11-15 08:44:12 +03:00
Remove unnecessary if statement
This commit is contained in:
parent
2e1b67208d
commit
83199fbd65
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user