Skip to content

Commit

Permalink
Make method getTemplates return never return null
Browse files Browse the repository at this point in the history
  • Loading branch information
puleeno committed May 12, 2024
1 parent 0750130 commit 21de1a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public function generateTemplateNames()

public function getTemplates()
{
if (is_null($this->templates)) {
return [];
}
return $this->templates;
}

Expand Down

0 comments on commit 21de1a6

Please sign in to comment.