[TOOLS] Fix all errors found by PHPStan level 1

This commit is contained in:
2021-09-06 20:59:36 +01:00
parent 0da6ff05ed
commit add8f4a52f
19 changed files with 83 additions and 54 deletions

View File

@@ -199,7 +199,7 @@ abstract class Cache
->lTrim($key, -$max_count ?? 0, -1)
->exec();
} else {
self::set($key, $value, $pool, $beta);
self::set($key, $value, $pool);
}
}
@@ -223,7 +223,7 @@ abstract class Cache
$count = count($res);
$res = array_slice($res, $count - $max_count, $count); // Trim the older values
}
self::set($key, $res, $pool, $beta);
self::set($key, $res, $pool);
}
}