From 8e6582dd337033b5b1abc36d2016d1cec3f9bc8d Mon Sep 17 00:00:00 2001 From: Forkless Date: Tue, 12 May 2026 01:06:49 +0200 Subject: [PATCH] fix(dashboard): change human_size param from int to float to match disk_free_space return type --- includes/class-dashboard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-dashboard.php b/includes/class-dashboard.php index 6e316de..7707239 100644 --- a/includes/class-dashboard.php +++ b/includes/class-dashboard.php @@ -251,8 +251,8 @@ class Dashboard { * @param int $bytes Raw byte count. * @return string e.g. "24.5 MB" */ - private function human_size( int $bytes ): string { - if ( 0 === $bytes ) { + private function human_size( float $bytes ): string { + if ( $bytes <= 0.0 ) { return '0 B'; }