Skip to content

Commit

Permalink
Declare $__bladeCompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio committed Sep 16, 2024
1 parent dc69a35 commit f10d5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MaryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function registerScopeDirective(): void
*/
$name = str_replace('.', '___', $name);

return "<?php \$loop = null; \$__env->slot({$name}, function({$functionArguments}) use ({$uses}) { \$loop = (object) \$__env->getLoopStack()[0] ?>";
return "<?php \$__bladeCompiler = \$__bladeCompiler ?? null; \$loop = null; \$__env->slot({$name}, function({$functionArguments}) use ({$uses}) { \$loop = (object) \$__env->getLoopStack()[0] ?>";
});

Blade::directive('endscope', function () {
Expand Down

0 comments on commit f10d5dc

Please sign in to comment.