From 86d17e396c721c60971c21ce04e3490a2de1a43c Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 4 Aug 2026 11:41:33 +0200 Subject: [PATCH] fix: implicit int conversion is deprecated --- phptidy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phptidy.php b/phptidy.php index 496fcc8..35c32a5 100755 --- a/phptidy.php +++ b/phptidy.php @@ -1491,7 +1491,7 @@ function mergesort(&$array, $cmp_function = 'strcmp') { // Arrays of size < 2 require no action. if (count($array) < 2) return; // Split the array in half - $halfway = count($array) / 2; + $halfway = intval(count($array) / 2); $array1 = array_slice($array, 0, $halfway); $array2 = array_slice($array, $halfway); // Recurse to sort the two halves