Fix type error

This commit is contained in:
Damodar Lohani
2025-03-31 03:55:06 +00:00
parent 7399362c20
commit ec21effd2c
+1 -1
View File
@@ -332,7 +332,7 @@ class StatsUsage extends Action
{
foreach ($this->stats as $stats) {
$project = new Document($stats['project'] ?? []);
$project = $stats['project'] ?? new Document([]);
$numberOfKeys = !empty($stats['keys']) ? count($stats['keys']) : 0;
$receivedAt = $stats['receivedAt'] ?? null;
if ($numberOfKeys === 0) {