mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
add type hinting to settings repository
This commit is contained in:
parent
479266b368
commit
ec04ca7f97
|
@ -22,7 +22,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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,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