diff --git a/src/Settings/DatabaseSettingsRepository.php b/src/Settings/DatabaseSettingsRepository.php index b6e246055..44d1495ca 100644 --- a/src/Settings/DatabaseSettingsRepository.php +++ b/src/Settings/DatabaseSettingsRepository.php @@ -20,7 +20,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/src/Settings/SettingsRepositoryInterface.php b/src/Settings/SettingsRepositoryInterface.php index 2a4aa10f0..8bb3d7ab2 100644 --- a/src/Settings/SettingsRepositoryInterface.php +++ b/src/Settings/SettingsRepositoryInterface.php @@ -11,7 +11,7 @@ namespace Flarum\Settings; interface SettingsRepositoryInterface { - public function all(); + public function all(): array; public function get($key, $default = null);