Skip to content

Commit

Permalink
Fix of Deprecation warning with php 8.1 #614 (#615)
Browse files Browse the repository at this point in the history
* Fix of Deprecation warning with php 8.1 #614

* Update include/barcodes/qrcode.php

Co-authored-by: William Desportes <[email protected]>

---------

Co-authored-by: Robert Johnson Nallori <[email protected]>
Co-authored-by: johnson361 <[email protected]>
Co-authored-by: William Desportes <[email protected]>
  • Loading branch information
4 people committed Sep 6, 2023
1 parent fc6faf6 commit 7734617
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/barcodes/qrcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ protected function getCode() {
if ($col >= $this->rsblocks[0]['dataLength']) {
$row += $this->b1;
}
$row = (int) $row;
$ret = $this->rsblocks[$row]['data'][$col];
} elseif ($this->count < $this->dataLength + $this->eccLength) {
$row = ($this->count - $this->dataLength) % $this->blocks;
Expand Down

0 comments on commit 7734617

Please sign in to comment.