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 <williamdes@wdes.fr>

---------

Co-authored-by: Robert Johnson Nallori <rnallori@evoketechnologies.com>
Co-authored-by: johnson361 <johnson361@users.noreply.github.com>
Co-authored-by: William Desportes <williamdes@wdes.fr>
  • 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
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.