diff --git a/src/Compiler/Concerns/CompilesLayouts.php b/src/Compiler/Concerns/CompilesLayouts.php index c24e7cd..cab3429 100644 --- a/src/Compiler/Concerns/CompilesLayouts.php +++ b/src/Compiler/Concerns/CompilesLayouts.php @@ -45,7 +45,7 @@ protected function compileSection(DirectiveNode $node): string return "startSection{$this->getDirectiveArgs($node)}; ?>"; } - #[CompilesDirective(StructureType::Terminator, ArgumentRequirement::Required)] + #[CompilesDirective(StructureType::Terminator, ArgumentRequirement::NoArguments)] protected function compileParent(): string { $escapedLastSection = strtr($this->lastSection, ['\\' => '\\\\', "'" => "\\'"]);