]> BookStack Code Mirror - bookstack/commitdiff
Addressed phpstan cases
authorDan Brown <redacted>
Fri, 7 Jan 2022 13:04:49 +0000 (13:04 +0000)
committerDan Brown <redacted>
Fri, 7 Jan 2022 13:04:49 +0000 (13:04 +0000)
app/Entities/Tools/BookSortMap.php
app/Http/Controllers/Controller.php

index 43b25817ea3f191c24ee4c76d3d30149374b3f28..ff1ec767f784458e58c867f4a845acd8efdfdbf5 100644 (file)
@@ -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) {
index f836f18edad2db02453717f3f2c4f4b43a099a77..2c4c2df1e384e2b2b433062d82d82aa959c3e1c8 100644 (file)
@@ -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()
     {