mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-26 05:48:12 +00:00
:octocat: switch phan for phpstan (see #277)
This commit is contained in:
@@ -105,6 +105,7 @@ final class BitMatrix extends QRMatrix{
|
||||
* correct order in order to reconstruct the codewords bytes contained within the
|
||||
* QR Code. Throws if the exact number of bytes expected is not read.
|
||||
*
|
||||
* @return int[]
|
||||
* @throws \chillerlan\QRCode\Decoder\QRCodeDecoderException
|
||||
*/
|
||||
public function readCodewords():array{
|
||||
@@ -362,7 +363,6 @@ final class BitMatrix extends QRMatrix{
|
||||
|
||||
// Otherwise see if this is the closest to a real version info bit string
|
||||
// we have seen so far
|
||||
/** @phan-suppress-next-line PhanTypeMismatchArgumentNullable ($targetVersionPattern is never null here) */
|
||||
$bitsDifference = $this->numBitsDiffering($versionBits, $targetVersionPattern);
|
||||
|
||||
if($bitsDifference < $bestDifference){
|
||||
|
||||
Reference in New Issue
Block a user