mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 21:48:08 +00:00
🚿 force int because PHP8.1 hates this
This commit is contained in:
@@ -252,7 +252,7 @@ final class Binarizer{
|
||||
// finish the rest of the rows quickly
|
||||
for($yy++, $offset += $width; $yy < self::BLOCK_SIZE; $yy++, $offset += $width){
|
||||
for($xx = 0; $xx < self::BLOCK_SIZE; $xx++){
|
||||
$sum += $luminances[(int)($offset + $xx)] & 0xff;
|
||||
$sum += (int)($luminances[(int)($offset + $xx)]) & 0xff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user