:octocat: switch phan for phpstan (see #277)

This commit is contained in:
smiley
2024-07-21 05:25:26 +02:00
parent f65d9d2815
commit 89cdd09044
72 changed files with 539 additions and 217 deletions
+5 -3
View File
@@ -22,7 +22,7 @@ final class ReedSolomonEncoder{
private Version $version;
private EccLevel $eccLevel;
/** @var int[] */
private array $interleavedData;
private int $interleavedDataIndex;
@@ -37,6 +37,7 @@ final class ReedSolomonEncoder{
/**
* ECC encoding and interleaving
*
* @return int[]
* @throws \chillerlan\QRCode\QRCodeException
*/
public function interleaveEcBytes(BitBuffer $bitBuffer):array{
@@ -80,7 +81,8 @@ final class ReedSolomonEncoder{
}
/**
*
* @param int[] $dataBytes
* @return int[]
*/
private function encode(array $dataBytes, int $ecByteCount):array{
$rsPoly = new GenericGFPoly([1]);
@@ -112,7 +114,7 @@ final class ReedSolomonEncoder{
}
/**
*
* @param int[][] $byteArray
*/
private function interleave(array $byteArray, int $maxBytes, int $numRsBlocks):void{
for($x = 0; $x < $maxBytes; $x++){