Skip to content

Commit

Permalink
fix: make phpstan happy
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadschaak committed Oct 16, 2023
1 parent 59583e5 commit cf55360
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Renderer/SimpleSlideRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public function renderSlide(Document $slide): string
{
$slideMarkup = $this->renderDocument($slide);
foreach ($slide->getChildren() as $subSlide) {
$slideMarkup .= $this->renderSlide($subSlide);
if ($subSlide) {
$slideMarkup .= $this->renderSlide($subSlide);
}
}

return $slideMarkup;
Expand Down

0 comments on commit cf55360

Please sign in to comment.