PHP error

Implicit conversion from float 0.5 to int loses precision

/media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(2972)

2960         
2961         //----------------------------------------------------------------------
2962         public function getCode()
2963         {
2964             $ret;
2965 
2966             if($this->count < $this->dataLength) {
2967                 $row = $this->count % $this->blocks;
2968                 $col = $this->count / $this->blocks;
2969                 if($col >= $this->rsblocks[0]->dataLength) {
2970                     $row += $this->b1;
2971                 }
2972                 $ret = $this->rsblocks[$row]->data[$col];
2973             } else if($this->count < $this->dataLength + $this->eccLength) {
2974                 $row = ($this->count - $this->dataLength) % $this->blocks;
2975                 $col = ($this->count - $this->dataLength) / $this->blocks;
2976                 $ret = $this->rsblocks[$row]->ecc[$col];
2977             } else {
2978                 return 0;
2979             }
2980             $this->count++;
2981             
2982             return $ret;
2983         }
2984     }

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3019): QRrawcode->getCode()
3014                 return NULL;
3015             }
3016 
3017             // inteleaved data and ecc codes
3018             for($i=0; $i<$raw->dataLength + $raw->eccLength; $i++) {
3019                 $code = $raw->getCode();
3020                 $bit = 0x80;
3021                 for($j=0; $j<8; $j++) {
3022                     $addr = $filler->next();
3023                     $filler->setFrameAt($addr, 0x02 | (($bit & $code) != 0));
3024                     $bit = $bit >> 1;
#1
+
 /media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3072): QRcode->encodeMask(QRinput, -1)
3067         }
3068     
3069         //----------------------------------------------------------------------
3070         public function encodeInput(QRinput $input)
3071         {
3072             return $this->encodeMask($input, -1);
3073         }
3074         
3075         //----------------------------------------------------------------------
3076         public function encodeString8bit($string, $version, $level)
3077         {
#2
+
 /media/shnoulle/data/webdev/master/application/core/plugins/TwoFactorAdminLogin/helper/phpqrcode.php(3111): QRcode->encodeInput(QRinput)
3106             $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive);
3107             if($ret < 0) {
3108                 return NULL;
3109             }
3110 
3111             return $this->encodeInput($input);
3112         }
3113         
3114         //----------------------------------------------------------------------
3115         public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false, $back_color = 0xFFFFFF, $fore_color = 0x000000) 
3116         {
2024-01-18 10:14:12 nginx/1.22.1 Yii Framework/1.1.28