Skip to content

Commit a420f12

Browse files
committed
Double & float are the same in PHP
See: - https://www.php.net/manual/en/migration85.deprecated.php - https://php.watch/versions/8.5/boolean-double-integer-binary-casts-deprecated Non-canonical cast names (boolean), (integer), (double), and (binary) have been deprecated, use (bool), (int), (float), and (string) respectively.
1 parent e25ee06 commit a420f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/Jury/RejudgingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function indexAction(): Response
126126
$status = $rejudging->getValid() ? 'applied' : 'canceled';
127127
$sort_order = 2;
128128
} elseif ($todo > 0) {
129-
$perc = (int)(100 * ((double)$done / (double)($done + $todo)));
129+
$perc = (int)(100 * ((float)$done / (float)($done + $todo)));
130130
$status = sprintf("%d%% done", $perc);
131131
$sort_order = 0;
132132
} else {

0 commit comments

Comments
 (0)