From ec21effd2c466c4b06a96ec2a678adfaa97353a9 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 31 Mar 2025 03:55:06 +0000 Subject: [PATCH] Fix type error --- src/Appwrite/Platform/Workers/StatsUsage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/StatsUsage.php b/src/Appwrite/Platform/Workers/StatsUsage.php index a0c16449b6..ffd2a32648 100644 --- a/src/Appwrite/Platform/Workers/StatsUsage.php +++ b/src/Appwrite/Platform/Workers/StatsUsage.php @@ -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) {