]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Book.php
Update maintenance.php
[bookstack] / app / Entities / Book.php
index e722c4b107dc5dd3ea1262b7672e14bc7f9ef32e..77cacf632e03dad04c6b9dcec98843170e046224 100644 (file)
@@ -101,7 +101,7 @@ class Book extends Entity
      * @param int $length
      * @return string
      */
-    public function getExcerpt($length = 100)
+    public function getExcerpt(int $length = 100)
     {
         $description = $this->description;
         return strlen($description) > $length ? substr($description, 0, $length-3) . '...' : $description;