]> BookStack Code Mirror - bookstack/blobdiff - app/helpers.php
Added tests to cover saml and added controller middleware
[bookstack] / app / helpers.php
index d14379ddd9364a7d5cf512ac73be9c66b106dcc5..6211f41be0c4ef1a866a4c043287b2d76c1f3f60 100644 (file)
@@ -92,11 +92,11 @@ function userCanOnAny(string $permission, string $entityClass = null): bool
 
 /**
  * Helper to access system settings.
- * @param $key
- * @param bool $default
+ * @param string $key
+ * @param $default
  * @return bool|string|SettingService
  */
-function setting(string $key = null, bool $default = false)
+function setting(string $key = null, $default = false)
 {
     $settingService = resolve(SettingService::class);
     if (is_null($key)) {