mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
add type hinting to settings repository
This commit is contained in:
parent
a530c52fb4
commit
b603c7b336
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user