Skip to content

Commit c681c27

Browse files
committed
Apply fixes from StyleCI
1 parent abf7138 commit c681c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AccessToken.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ public function build()
194194

195195
$sig = hash_hmac('sha256', implode(array_map('chr', $val)), $this->appCertificate, true);
196196

197-
$crc_channel_name = crc32($this->channelName) & 0xffffffff;
198-
$crc_uid = crc32($this->uid) & 0xffffffff;
197+
$crc_channel_name = crc32($this->channelName) & 0xFFFFFFFF;
198+
$crc_uid = crc32($this->uid) & 0xFFFFFFFF;
199199

200200
$content = array_merge(unpack('C*', packString($sig)), unpack('C*', pack('V', $crc_channel_name)), unpack('C*', pack('V', $crc_uid)), unpack('C*', pack('v', count($msg))), $msg);
201201
$version = '006';

0 commit comments

Comments
 (0)