Skip to content

Commit

Permalink
Fixing Cannot Call Statically
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Fahri committed Mar 17, 2023
1 parent 6dee3fe commit 0973371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/Fingerprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Fingerprint
'GetUserInfo' => '<GetUserInfo><ArgComKey xsi:type=\"xsd:integer\">#COMKEY</ArgComKey>#PIN</GetUserInfo>'
];

public function connect($ip, $port=80, $comkey=0)
public static function connect($ip, $port=80, $comkey=0)
{
static::$ip = $ip;
static::$port = $port;
Expand Down

0 comments on commit 0973371

Please sign in to comment.