Исправление ошибок

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2021-08-16 15:22:24 +10:00
parent 96d9a0307c
commit fab247b4bc

View File

@ -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);
}
}