1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-04-19 18:22:16 +03:00

Addressed phpstan cases

This commit is contained in:
Dan Brown 2022-01-07 13:04:49 +00:00
parent ef11100863
commit c3f7b39a0f
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class BookSortMap
public static function fromJson(string $json): self public static function fromJson(string $json): self
{ {
$map = new static(); $map = new BookSortMap();
$mapData = json_decode($json); $mapData = json_decode($json);
foreach ($mapData as $mapDataItem) { foreach ($mapData as $mapDataItem) {

View File

@ -48,6 +48,8 @@ abstract class Controller extends BaseController
/** /**
* On a permission error redirect to home and display. * On a permission error redirect to home and display.
* the error as a notification. * the error as a notification.
*
* @return never
*/ */
protected function showPermissionError() protected function showPermissionError()
{ {