diff --git a/app/Entities/Tools/BookSortMap.php b/app/Entities/Tools/BookSortMap.php index 43b25817e..ff1ec767f 100644 --- a/app/Entities/Tools/BookSortMap.php +++ b/app/Entities/Tools/BookSortMap.php @@ -24,7 +24,7 @@ class BookSortMap public static function fromJson(string $json): self { - $map = new static(); + $map = new BookSortMap(); $mapData = json_decode($json); foreach ($mapData as $mapDataItem) { diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index f836f18ed..2c4c2df1e 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -48,6 +48,8 @@ abstract class Controller extends BaseController /** * On a permission error redirect to home and display. * the error as a notification. + * + * @return never */ protected function showPermissionError() {