khanamiryan / php-qrcode-detector-decoder

This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syntax error, unexpected fully qualified name "\Zxing\BinaryBitmap", expecting variable

iamdenzen opened this issue · comments

Hi, I'm facing this error when i deployed my project to server.

syntax error, unexpected fully qualified name "\Zxing\BinaryBitmap", expecting variable

It was working fine on local.
PHP version i'm using is 8.1

VENDORPATH/khanamiryan/qrcode-detector-decoder/lib/QrReader.php at line 14

namespace Zxing;

use Zxing\Common\HybridBinarizer;
use Zxing\Qrcode\QRCodeReader;

final class QrReader
{
public const SOURCE_TYPE_FILE = 'file';
public const SOURCE_TYPE_BLOB = 'blob';
public const SOURCE_TYPE_RESOURCE = 'resource';

private readonly \Zxing\BinaryBitmap $bitmap;
private readonly \Zxing\Qrcode\QRCodeReader $reader;
private \Zxing\Result|bool|null $result = null;

Hi im on the same issue, how do you solve this? thanks

fully qualified name "\Zxing\BinaryBitmap", expecting variable in

php-qrcode-detector-decoder-master/lib/QrReader.php on line 24

I simply didn't use this. Ended up using a javascript alternative.

Do you know why this issue is coming?