Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from alex2005git/bug/fix_pages_count
Browse files Browse the repository at this point in the history
Fix pages counting content instead of the array (throwing Countable)
  • Loading branch information
Anton Nikolaev authored Jun 27, 2018
2 parents 9d58fa8 + a55f0aa commit ec57b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function addPage($number, $content)
}

$this->content[$number] = $content;
$this->pages = count($this->content[$number]);
$this->pages = count($this->content);
return $this;
}

Expand Down

0 comments on commit ec57b5e

Please sign in to comment.