1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-28 10:40:28 +02:00

[ticket/15540] Add types and phpdoc

PHPBB3-15540
This commit is contained in:
rubencm
2021-03-22 16:57:40 +01:00
parent 53dce77b49
commit 911a31d898
7 changed files with 115 additions and 101 deletions

View File

@@ -48,7 +48,7 @@ class search_backend_factory
*
* @return search_backend_interface
*/
public function get($class)
public function get($class): search_backend_interface
{
return $this->search_backends->get_by_class($class);
}
@@ -58,7 +58,7 @@ class search_backend_factory
*
* @return search_backend_interface
*/
public function get_active()
public function get_active(): search_backend_interface
{
return $this->get($this->config['search_type']);
}