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:
Dan Brown
2025-09-02 16:02:52 +01:00
parent 1e34954554
commit cee23de6c5
34 changed files with 118 additions and 89 deletions

View File

@@ -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
{