diff --git a/framework/core/src/Settings/DatabaseSettingsRepository.php b/framework/core/src/Settings/DatabaseSettingsRepository.php index a74d68c37..06fb80970 100644 --- a/framework/core/src/Settings/DatabaseSettingsRepository.php +++ b/framework/core/src/Settings/DatabaseSettingsRepository.php @@ -22,7 +22,7 @@ class DatabaseSettingsRepository implements SettingsRepositoryInterface $this->database = $connection; } - public function all() + public function all(): array { return $this->database->table('settings')->pluck('value', 'key')->all(); } diff --git a/framework/core/src/Settings/SettingsRepositoryInterface.php b/framework/core/src/Settings/SettingsRepositoryInterface.php index f42012353..82dfeebed 100644 --- a/framework/core/src/Settings/SettingsRepositoryInterface.php +++ b/framework/core/src/Settings/SettingsRepositoryInterface.php @@ -13,7 +13,7 @@ namespace Flarum\Settings; interface SettingsRepositoryInterface { - public function all(); + public function all(): array; public function get($key, $default = null);