From c3f7b39a0f3daa64a2d838190ae8efaedea4633c Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Fri, 7 Jan 2022 13:04:49 +0000 Subject: [PATCH] Addressed phpstan cases --- app/Entities/Tools/BookSortMap.php | 2 +- app/Http/Controllers/Controller.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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() {