mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-05-04 18:08:46 +03:00
Maintenance: Reached PHPstan level 2
Reworked some stuff around slugs to use interface in a better way. Also standardised phpdoc to use @return instead of @returns
This commit is contained in:
@@ -95,6 +95,7 @@ class Book extends Entity implements CoverImageInterface, HtmlDescriptionInterfa
|
||||
|
||||
/**
|
||||
* Get all pages within this book.
|
||||
* @return HasMany<Page, $this>
|
||||
*/
|
||||
public function pages(): HasMany
|
||||
{
|
||||
@@ -111,7 +112,7 @@ class Book extends Entity implements CoverImageInterface, HtmlDescriptionInterfa
|
||||
|
||||
/**
|
||||
* Get all chapters within this book.
|
||||
* @return HasMany<Chapter>
|
||||
* @return HasMany<Chapter, $this>
|
||||
*/
|
||||
public function chapters(): HasMany
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user