forked from GNUsocial/gnu-social
[TOOLS] Fix errors reported by PHPStan at level 4
This commit is contained in:
@@ -179,6 +179,9 @@ abstract class Cache
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param callable(mixed, bool &$save): mixed $calculate
|
||||
*/
|
||||
public static function get(string $key, callable $calculate, string $pool = 'default', float $beta = 1.0)
|
||||
{
|
||||
if (isset(self::$redis[$pool])) {
|
||||
|
Reference in New Issue
Block a user