From fab247b4bc45afa0bcc358b1f4345b0378d00cf5 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Mon, 16 Aug 2021 15:22:24 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mirzaev/skillparts/system/models/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirzaev/skillparts/system/models/Order.php b/mirzaev/skillparts/system/models/Order.php index d7af66e..0634605 100644 --- a/mirzaev/skillparts/system/models/Order.php +++ b/mirzaev/skillparts/system/models/Order.php @@ -888,6 +888,6 @@ class Order extends Document implements DocumentInterface */ public static function count(int $limit = 500, bool $supplies = false): int { - return self::search(supplies: $supplies, type: $supplies ? 'current' : 'all', limit: $limit, count: true); + return (int) self::search(supplies: $supplies, type: $supplies ? 'current' : 'all', limit: $limit, count: true); } }