add type hinting to settings repository

This commit is contained in:
Daniël Klabbers 2019-10-08 15:39:01 +02:00
parent a530c52fb4
commit b603c7b336
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class DatabaseSettingsRepository implements SettingsRepositoryInterface
$this->database = $connection; $this->database = $connection;
} }
public function all() public function all(): array
{ {
return $this->database->table('settings')->pluck('value', 'key')->all(); return $this->database->table('settings')->pluck('value', 'key')->all();
} }

View File

@ -11,7 +11,7 @@ namespace Flarum\Settings;
interface SettingsRepositoryInterface interface SettingsRepositoryInterface
{ {
public function all(); public function all(): array;
public function get($key, $default = null); public function get($key, $default = null);