X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a7de251876a207f676e1ef4c70921aff1e56425b..refs/pull/5721/head:/app/App/helpers.php diff --git a/app/App/helpers.php b/app/App/helpers.php index 204b3f06a..2305c2d72 100644 --- a/app/App/helpers.php +++ b/app/App/helpers.php @@ -1,5 +1,6 @@ can($permission); } @@ -71,7 +67,7 @@ function userCanOnAny(string $action, string $entityClass = ''): bool * * @return mixed|SettingService */ -function setting(string $key = null, $default = null) +function setting(?string $key = null, mixed $default = null): mixed { $settingService = app()->make(SettingService::class);