We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411071e commit 4789674Copy full SHA for 4789674
1 file changed
inc/Workspace/WorktreeDiskBudget.php
@@ -90,8 +90,8 @@ public static function evaluate( array $metrics, array $thresholds = array(), bo
90
$warnings = array();
91
$refused = false;
92
93
- $effective_refuse_bytes = $thresholds['refuse_free_bytes'];
94
- $effective_warn_bytes = $thresholds['warn_free_bytes'];
+ $effective_refuse_bytes = (int) $thresholds['refuse_free_bytes'];
+ $effective_warn_bytes = (int) $thresholds['warn_free_bytes'];
95
if ( null !== $total_bytes && $total_bytes > 0 ) {
96
$effective_refuse_bytes = self::effective_refuse_free_bytes_threshold(
97
(int) $thresholds['refuse_free_bytes'],
0 commit comments