mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 05:13:37 +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;
|
||||
}
|
||||
|
||||
public function all()
|
||||
public function all(): array
|
||||
{
|
||||
return $this->database->table('settings')->pluck('value', 'key')->all();
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Flarum\Settings;
|
|||
|
||||
interface SettingsRepositoryInterface
|
||||
{
|
||||
public function all();
|
||||
public function all(): array;
|
||||
|
||||
public function get($key, $default = null);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user