mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Addressed phpstan cases
This commit is contained in:
parent
ef11100863
commit
c3f7b39a0f
@ -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) {
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user