Skip to content

Commit

Permalink
add a fallback for array merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lokmanm committed Jan 30, 2025
1 parent bf54bd3 commit 2670854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cascade.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ protected function parseAntlers($item)
{
$viewCascade = app(ViewCascade::class)->toArray();

return (string) Parse::template($item, array_merge($viewCascade, $this->current));
return (string) Parse::template($item, array_merge($viewCascade, $this->current ?? []));
}

protected function humans()
Expand Down

0 comments on commit 2670854

Please sign in to comment.