Skip to content

Commit

Permalink
Merge pull request #12 from nextapps-be/feature/fix-implicit-conversi…
Browse files Browse the repository at this point in the history
…on-deprecation-warning

Fix implicit conversion deprecation warning when converting float to int
  • Loading branch information
gdebrauwer authored May 13, 2024
2 parents cd3b324 + 673509a commit b76a8d6
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 b76a8d6

Please sign in to comment.