Skip to content

Commit

Permalink
Fallback if block mode is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls authored Sep 28, 2022
1 parent c5b9f21 commit 88f8b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jade/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88f8b0d

Please sign in to comment.