FAHRIZTX / ZKSoapPHP

A PHP Library For Manage Data From Fingerprint Machine with SOAP Protocol
https://packagist.org/packages/fahriztx/zksoapphp
MIT License
16 stars 9 forks source link

Non-static method Fahriztx\Zksoapphp\Fingerprint::connect() cannot be called statically #1

Closed Wakil18 closed 1 year ago

Wakil18 commented 1 year ago

When I try to initialize the connection using

$machine = Fingerprint::connect('192.168.1.175', '80', '123456');

it gives me an error saying Non-static method Fahriztx\Zksoapphp\Fingerprint::connect() cannot be called statically.

So I did the following:

$machine = new Fingerprint;

 $machine->connect('192.168.1.175', '4370', '123456');
sajib60web commented 1 year ago

Data Not coming

Wakil18 commented 1 year ago

I can't even establish a connection -_-

sajib60web commented 1 year ago

Connection is made but no data is received

sajib60web commented 1 year ago

Please sir solve it,

sajib60web commented 1 year ago

Very nice package

FAHRIZTX commented 1 year ago

When I try to initialize the connection using

$machine = Fingerprint::connect('192.168.1.175', '80', '123456');

it gives me an error saying Non-static method Fahriztx\Zksoapphp\Fingerprint::connect() cannot be called statically.

So I did the following:

$machine = new Fingerprint;

 $machine->connect('192.168.1.175', '4370', '123456');

@Wakil18 what version of PHP are you using?

Wakil18 commented 1 year ago

I'm using PHP 8.1.16. @FAHRIZTX