From 1225371ca87bf66de8bbd8bd90f982f4abe0c524 Mon Sep 17 00:00:00 2001 From: Sadik Date: Thu, 11 Nov 2021 12:25:52 +0600 Subject: [PATCH] get_percent_complete return value cast to int --- .../includes/export/abstract-wc-csv-batch-exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/includes/export/abstract-wc-csv-batch-exporter.php b/plugins/woocommerce/includes/export/abstract-wc-csv-batch-exporter.php index 838d4e57eea..ba73503493f 100644 --- a/plugins/woocommerce/includes/export/abstract-wc-csv-batch-exporter.php +++ b/plugins/woocommerce/includes/export/abstract-wc-csv-batch-exporter.php @@ -184,6 +184,6 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter { * @return int */ public function get_percent_complete() { - return $this->total_rows ? floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100; + return $this->total_rows ? (int) floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100; } }