Skip to content

Commit

Permalink
Merge pull request #3 from FAHRIZTX/solved-cannot-call-statically
Browse files Browse the repository at this point in the history
Fixing Cannot Call Statically
  • Loading branch information
FAHRIZTX authored Mar 17, 2023
2 parents 6dee3fe + 0973371 commit 1578a81
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 1578a81

Please sign in to comment.