Skip to content

Commit 8c981ae

Browse files
committed
Merge branch '10.x'
2 parents f103cb4 + 28b0d9e commit 8c981ae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Illuminate/Support/Facades/Blade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* @method static void aliasInclude(string $path, string|null $alias = null)
2929
* @method static void directive(string $name, callable $handler)
3030
* @method static array getCustomDirectives()
31+
* @method static \Illuminate\View\Compilers\BladeCompiler prepareStringsForCompilationUsing(callable $callback)
3132
* @method static void precompiler(callable $precompiler)
3233
* @method static void setEchoFormat(string $format)
3334
* @method static void withDoubleEncoding()

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)