From 09733710b77835f3b2a79ed1cf5e3588bb46b628 Mon Sep 17 00:00:00 2001 From: Muhammad Fahri Date: Sat, 18 Mar 2023 00:30:24 +0700 Subject: [PATCH] Fixing Cannot Call Statically --- README.md | 4 ++++ src/Fingerprint.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 42915a3..93289ec 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,7 @@ print_r($machine->getUserInfo([1, 2])); // return Array of User Info Data ``` +## Changelog + +* Add support fot PHP >= 8.0 +* Fixing Non-static method Fahriztx\Zksoapphp\Fingerprint::connect() cannot be called statically diff --git a/src/Fingerprint.php b/src/Fingerprint.php index d9a5c21..6d3c776 100644 --- a/src/Fingerprint.php +++ b/src/Fingerprint.php @@ -18,7 +18,7 @@ class Fingerprint 'GetUserInfo' => '#COMKEY#PIN' ]; - public function connect($ip, $port=80, $comkey=0) + public static function connect($ip, $port=80, $comkey=0) { static::$ip = $ip; static::$port = $port;