Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iamdenzen opened this issue Aug 19, 2022 · 4 comments

Comments

@iamdenzen
Copy link

iamdenzen commented Aug 19, 2022

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;

@Monclee
Copy link

Monclee commented Nov 17, 2022

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

@Monclee
Copy link

Monclee commented Nov 17, 2022

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

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

@iamdenzen
Copy link
Author

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

@jittu92
Copy link

jittu92 commented Feb 16, 2023

Do you know why this issue is coming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants