mirror of
https://github.com/ivuorinen/monolog-gdpr-filter.git
synced 2026-02-18 04:52:05 +00:00
chore: workflow and package updates, linting (#59)
* chore(deps): update composer packages * chore(ci): update workflows * chore(lint): fix codeql language, composer lint:fix * chore: set php version 8.2, update pre-commit hooks, linting
This commit is contained in:
@@ -228,7 +228,7 @@ class RateLimiter
|
||||
public static function getMemoryStats(): array
|
||||
{
|
||||
$totalKeys = count(self::$requests);
|
||||
$totalTimestamps = array_sum(array_map('count', self::$requests));
|
||||
$totalTimestamps = array_sum(array_map(count(...), self::$requests));
|
||||
$estimatedMemory = $totalKeys * 50 + $totalTimestamps * 8; // Rough estimate
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user