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:
2025-12-01 11:18:44 +02:00
committed by GitHub
parent e293587296
commit c3d6b8b1c6
15 changed files with 445 additions and 446 deletions

View File

@@ -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 [