Skip to content

Commit 4789674

Browse files
committed
Fix disk budget lint failures
1 parent 411071e commit 4789674

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

inc/Workspace/WorktreeDiskBudget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public static function evaluate( array $metrics, array $thresholds = array(), bo
9090
$warnings = array();
9191
$refused = false;
9292

93-
$effective_refuse_bytes = $thresholds['refuse_free_bytes'];
94-
$effective_warn_bytes = $thresholds['warn_free_bytes'];
93+
$effective_refuse_bytes = (int) $thresholds['refuse_free_bytes'];
94+
$effective_warn_bytes = (int) $thresholds['warn_free_bytes'];
9595
if ( null !== $total_bytes && $total_bytes > 0 ) {
9696
$effective_refuse_bytes = self::effective_refuse_free_bytes_threshold(
9797
(int) $thresholds['refuse_free_bytes'],

0 commit comments

Comments
 (0)