Add type hints and return types to cache classes

This commit is contained in:
slawkens
2025-12-18 14:33:07 +01:00
parent ccfd6f1a87
commit c44c9f9cf4
5 changed files with 36 additions and 43 deletions

View File

@@ -83,7 +83,7 @@ class Cache
/**
* @return string
*/
public static function detect()
public static function detect(): string
{
if (function_exists('apc_fetch'))
return 'apc';
@@ -98,8 +98,7 @@ class Cache
/**
* @return bool
*/
public function enabled()
{
public function enabled(): bool {
return false;
}