sections) ) { throw new \RuntimeException("A section closing tag {% endsection %} was found without an opening {% section %} tag"); } $section = array_pop($context->sections); $build = $context->extendFrom ? "" : "\$this->__renderSection({$section['name']});"; return ""; } }