Skip to content

Commit b8ea0e2

Browse files
Update webapp/src/Service/ScoreboardService.php
Co-authored-by: Nicky Gerritsen <[email protected]>
1 parent 83d6aa3 commit b8ea0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/ScoreboardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ public static function convertToScoreKeyElement(int|string $value, Order $order
573573
if (bccomp($value, $ALMOST_INFINITE, scale: self::SCALE) > 0) {
574574
throw new Exception("Value $value is too large to convert to a score key element.");
575575
}
576-
if ($value[0] === '-') {
576+
if (str_starts_with($value, '-')) {
577577
throw new Exception("No negative values allowed in score key element, got $value.");
578578
}
579579

0 commit comments

Comments
 (0)