Skip to content

Commit

Permalink
Fixed BigNumber sometimes returned as float instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
Mediagone authored and Pascal de Vink committed Aug 10, 2018
1 parent 47a91e0 commit 1f4aef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShortUuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private function numToString(BigNumber $number) : string
$number = $number->divide($this->alphabetLength);
$digit = $previousNumber->mod($this->alphabetLength);

$output .= $this->alphabet[$digit->getValue()];
$output .= $this->alphabet[(int)$digit->getValue()];
}

return $output;
Expand Down

0 comments on commit 1f4aef3

Please sign in to comment.