Skip to content

Commit 8df4a7a

Browse files
committed
🚿 force int because PHP8.1 hates this
1 parent f7521c9 commit 8df4a7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Decoder/Binarizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function calculateBlackPoints(array $luminances, int $subWidth, int $sub
252252
// finish the rest of the rows quickly
253253
for($yy++, $offset += $width; $yy < self::BLOCK_SIZE; $yy++, $offset += $width){
254254
for($xx = 0; $xx < self::BLOCK_SIZE; $xx++){
255-
$sum += $luminances[(int)($offset + $xx)] & 0xff;
255+
$sum += (int)($luminances[(int)($offset + $xx)]) & 0xff;
256256
}
257257
}
258258
}

0 commit comments

Comments
 (0)