Skip to content

Commit 5911235

Browse files
committed
Compiler: refactor to use getStoreEnv() method
1 parent 1e1b0be commit 5911235

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Compiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,14 +1600,14 @@ protected function compileChild($child, $out)
16001600
$this->throwError("Undefined mixin $name");
16011601
}
16021602

1603-
$callingScope = $this->env;
1603+
$callingScope = $this->getStoreEnv();
16041604

16051605
// push scope, apply args
16061606
$this->pushEnv();
16071607
$this->env->depth--;
16081608

16091609
if (isset($content)) {
1610-
$content->scope = $this->storeEnv ? $this->storeEnv : $callingScope;
1610+
$content->scope = $callingScope;
16111611

16121612
$this->setRaw(self::$namespaces['special'] . 'content', $content, $this->getStoreEnv());
16131613
}

0 commit comments

Comments
 (0)