🚒 phan happy

This commit is contained in:
codemasher
2021-01-25 01:09:32 +01:00
parent 84eb31696c
commit 95cac35fdd
4 changed files with 15 additions and 9 deletions
+2
View File
@@ -153,6 +153,7 @@ final class Decoder{
// All blocks have the same amount of data, except that the last n
// (where n may be 0) have 1 more byte. Figure out where these start.
/** @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset */
$shorterBlocksTotalCodewords = count($result[0][1]);
$longerBlocksStartAt = count($result) - 1;
@@ -185,6 +186,7 @@ final class Decoder{
}
// Now add in error correction blocks
/** @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset */
$max = count($result[0][1]);
for($i = $shorterBlocksNumDataCodewords; $i < $max; $i++){