From 61b1cbadbb337b089c3ffae1f309f594adb25a1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20P=C5=82aczek?= Date: Mon, 16 Dec 2024 09:11:10 +0100 Subject: [PATCH] Set current_quantity to zero when there is no package. --- src/FoodsiService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FoodsiService.php b/src/FoodsiService.php index c6a301d..33c14a3 100644 --- a/src/FoodsiService.php +++ b/src/FoodsiService.php @@ -38,7 +38,7 @@ readonly class FoodsiService return $data['data'][0]['attributes']; } - return []; + return ['current_quantity' => 0]; } private function login(): void