add type hinting to settings repository

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

View File

@ -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();
}

View File

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