Skip to content

Commit 28b0d9e

Browse files
authored
Adjusts for Volt (#47757)
1 parent 0a0628b commit 28b0d9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/View/Compilers/BladeCompiler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ public function compileString($value)
256256
{
257257
[$this->footer, $result] = [[], ''];
258258

259+
$value = $this->storeUncompiledBlocks($value);
260+
259261
foreach ($this->prepareStringsForCompilationUsing as $callback) {
260262
$value = $callback($value);
261263
}
@@ -264,7 +266,7 @@ public function compileString($value)
264266
// step which compiles the component Blade tags into @component directives
265267
// that may be used by Blade. Then we should call any other precompilers.
266268
$value = $this->compileComponentTags(
267-
$this->compileComments($this->storeUncompiledBlocks($value))
269+
$this->compileComments($value)
268270
);
269271

270272
foreach ($this->precompilers as $precompiler) {

0 commit comments

Comments
 (0)