Skip to content

Commit

Permalink
[10.x] Store blocks after prepare strings (laravel#48641)
Browse files Browse the repository at this point in the history
* Store blocks after prepare strings

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
2 people authored and timacdonald committed Oct 24, 2023
1 parent 01fc91f commit 46da356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/View/Compilers/BladeCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ public function compileString($value)
{
[$this->footer, $result] = [[], ''];

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

foreach ($this->prepareStringsForCompilationUsing as $callback) {
$value = $callback($value);
}

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

// First we will compile the Blade component tags. This is a precompile style
// step which compiles the component Blade tags into @component directives
// that may be used by Blade. Then we should call any other precompilers.
Expand Down

0 comments on commit 46da356

Please sign in to comment.