Skip to content

Commit

Permalink
Merge pull request #31 from ernix/parent-requires-no-args
Browse files Browse the repository at this point in the history
`@parent` directive does not require arguments
  • Loading branch information
JohnathonKoster authored Mar 15, 2024
2 parents 4cb4888 + 76015cc commit de29c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler/Concerns/CompilesLayouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function compileSection(DirectiveNode $node): string
return "<?php \$__env->startSection{$this->getDirectiveArgs($node)}; ?>";
}

#[CompilesDirective(StructureType::Terminator, ArgumentRequirement::Required)]
#[CompilesDirective(StructureType::Terminator, ArgumentRequirement::NoArguments)]
protected function compileParent(): string
{
$escapedLastSection = strtr($this->lastSection, ['\\' => '\\\\', "'" => "\\'"]);
Expand Down

0 comments on commit de29c22

Please sign in to comment.