Skip to content

Commit

Permalink
Fix block parsing when raw fragment is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Oct 25, 2024
1 parent cb2d362 commit 3e64fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function parseView(string $templatePath): array
break;

case Compiler::PHVOLT_T_RAW_FRAGMENT:
if ($state->rawFragment !== '') {
if ($this->token->getLength() > 0) {
if ($state->extendsMode === 1 && $state->blockLevel === 0) {
$this->createErrorMessage(
$parserStatus,
Expand Down

0 comments on commit 3e64fbb

Please sign in to comment.