get_percent_complete return value cast to int

This commit is contained in:
Sadik 2021-11-11 12:25:52 +06:00 committed by barryhughes
parent ac6078ea28
commit 1225371ca8
1 changed files with 1 additions and 1 deletions

View File

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