Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Oct 27, 2023
1 parent 1cc757d commit 619000a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AlphaID.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Luffy\Exception\DecodeException;
use Luffy\Exception\InvalidArgumentException;

#[\AllowDynamicProperties]
class AlphaID
{
const MIN_ALPHABET_LENGTH = 16;
Expand Down Expand Up @@ -216,7 +217,7 @@ private function _encode(array $numbers)

$excess = strlen($ret) - $this->_min_hash_length;
if ($excess > 0) {
$ret = substr($ret, $excess / 2, $this->_min_hash_length);
$ret = substr($ret, (int)($excess / 2), $this->_min_hash_length);
}
}

Expand Down

0 comments on commit 619000a

Please sign in to comment.