From 88f8b0d3f017a5bfa79757973f10b6ce00a74396 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 28 Sep 2022 21:45:36 +0200 Subject: [PATCH] Fallback if block mode is not set --- src/Jade/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jade/Parser.php b/src/Jade/Parser.php index 612decb4..ad61430d 100644 --- a/src/Jade/Parser.php +++ b/src/Jade/Parser.php @@ -423,7 +423,7 @@ protected function parseBlock() if (isset($this->blocks[$name])) { $prev = &$this->blocks[$name]; - switch ($prev->mode) { + switch (isset($prev->mode) ? $prev->mode : 'replace') { case 'append': $block->nodes = array_merge($block->nodes, $prev->nodes); $prev = $block;