X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/213a86e3c0ffa36d4aed030eb72d5d65204d02ff..refs/pull/5676/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);