mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-25 17:41:25 +02:00
[ticket/17361] Rewrite storage
PHPBB-17361
This commit is contained in:
@@ -18,7 +18,7 @@ class local implements provider_interface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_name()
|
||||
public function get_name(): string
|
||||
{
|
||||
return 'local';
|
||||
}
|
||||
@@ -34,7 +34,7 @@ class local implements provider_interface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_options()
|
||||
public function get_options(): array
|
||||
{
|
||||
return [
|
||||
'path' => [
|
||||
@@ -47,7 +47,7 @@ class local implements provider_interface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function is_available()
|
||||
public function is_available(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@@ -20,7 +20,7 @@ interface provider_interface
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_name();
|
||||
public function get_name(): string;
|
||||
|
||||
/**
|
||||
* Gets adapter class
|
||||
@@ -34,12 +34,12 @@ interface provider_interface
|
||||
*
|
||||
* @return array Configuration keys
|
||||
*/
|
||||
public function get_options();
|
||||
public function get_options(): array;
|
||||
|
||||
/**
|
||||
* Return true if the adapter is available
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function is_available();
|
||||
public function is_available(): bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user