From 8df4a7a532ba65546bc912d55909020366aefb49 Mon Sep 17 00:00:00 2001 From: codemasher Date: Mon, 13 Dec 2021 00:22:34 +0100 Subject: [PATCH] :shower: force int because PHP8.1 hates this --- src/Decoder/Binarizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Decoder/Binarizer.php b/src/Decoder/Binarizer.php index 0ad69de64..85ba3b60f 100644 --- a/src/Decoder/Binarizer.php +++ b/src/Decoder/Binarizer.php @@ -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; } } }