From ec04ca7f9708b39e401d37258437a549026f727c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Tue, 8 Oct 2019 15:39:01 +0200 Subject: [PATCH] add type hinting to settings repository --- framework/core/src/Settings/DatabaseSettingsRepository.php | 2 +- framework/core/src/Settings/SettingsRepositoryInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);