Skip to content

Commit

Permalink
Fix implicit conversion deprecation warning when converting float to int
Browse files Browse the repository at this point in the history
  • Loading branch information
gdebrauwer committed May 13, 2024
1 parent cd3b324 commit 673509a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UniqueCodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected function encodeNumber(int $number)
$characters = $this->characters;

for ($i = 0; $i < $this->length; $i++) {
$digit = (int) ($number % strlen($characters));
$digit = intval($number % strlen($characters));

$string = $characters[$digit] . $string;

Expand Down

0 comments on commit 673509a

Please sign in to comment.