Исправление ошибок
This commit is contained in:
parent
96d9a0307c
commit
fab247b4bc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue