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:
parent
ef11100863
commit
c3f7b39a0f
@ -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) {
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user