Skip to content

Commit 674724c

Browse files
authored
Update SimpleDotNotationReplacer.php
1 parent db791fc commit 674724c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/frdl/Templater/SimpleDotNotationReplacer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ class SimpleDotNotationReplacer extends Replacer
88
{
99

1010
public function replace(Context $context, string $template) : string {
11-
return preg_replace_callback('/\{\{([\w\.^\{\}]+)\}\}/is', function($m) use ($context){
11+
$context = $context->resolve();
12+
13+
return preg_replace_callback('/\{\{([\w\.^\{\}]+)\}\}/is', function($m) use ($context){
1214
if($context->has($m[1])){
1315
return $context->get($m[1]);
1416
}else{

0 commit comments

Comments
 (0)