Skip to content

Commit

Permalink
Adjusts for Volt (laravel#47757)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jul 15, 2023
1 parent 0a0628b commit 28b0d9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/View/Compilers/BladeCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ public function compileString($value)
{
[$this->footer, $result] = [[], ''];

$value = $this->storeUncompiledBlocks($value);

foreach ($this->prepareStringsForCompilationUsing as $callback) {
$value = $callback($value);
}
Expand All @@ -264,7 +266,7 @@ public function compileString($value)
// step which compiles the component Blade tags into @component directives
// that may be used by Blade. Then we should call any other precompilers.
$value = $this->compileComponentTags(
$this->compileComments($this->storeUncompiledBlocks($value))
$this->compileComments($value)
);

foreach ($this->precompilers as $precompiler) {
Expand Down

0 comments on commit 28b0d9e

Please sign in to comment.