mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 15:50:29 -04:00
Cast WordCount to string to fix PHPStan error
This commit is contained in:
parent
8a3a05a264
commit
dab857d127
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ catch(Exceptions\EbookNotFoundException){
|
||||||
|
|
||||||
<aside id="reading-ease">
|
<aside id="reading-ease">
|
||||||
<? if($ebook->WordCount !== null){ ?>
|
<? if($ebook->WordCount !== null){ ?>
|
||||||
<meta property="schema:wordCount" content="<?= Formatter::EscapeHtml($ebook->WordCount) ?>"/>
|
<meta property="schema:wordCount" content="<?= Formatter::EscapeHtml((string)$ebook->WordCount) ?>"/>
|
||||||
<p><?= number_format($ebook->WordCount) ?> words (<?= $ebook->ReadingTime ?>) with a reading ease of <?= $ebook->ReadingEase ?> (<?= $ebook->ReadingEaseDescription ?>)</p>
|
<p><?= number_format($ebook->WordCount) ?> words (<?= $ebook->ReadingTime ?>) with a reading ease of <?= $ebook->ReadingEase ?> (<?= $ebook->ReadingEaseDescription ?>)</p>
|
||||||
<? } ?>
|
<? } ?>
|
||||||
<? if($ebook->ContributorsHtml != ''){ ?>
|
<? if($ebook->ContributorsHtml != ''){ ?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue