Skip to content

Commit f81f521

Browse files
committed
fixing type hinting
1 parent 74dcf22 commit f81f521

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Libs/ZKTeco.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ZKTeco
3232
public $_section = '';
3333
public $_requiredPing = false;
3434
public $_silentPing = false;
35-
public $_password = false;
35+
public $_password = 0;
3636

3737
/**
3838
* @param string $ip Device IP address.
@@ -44,8 +44,8 @@ public function __construct(string $ip, int $port = 4370, bool $shouldPing = fal
4444
{
4545
$this->_ip = $ip;
4646
$this->_port = $port;
47-
$this->_requiredPing = (bool) $shouldPing;
48-
$this->_password = $password;
47+
$this->_requiredPing = $shouldPing;
48+
$this->_password = (int)$password;
4949

5050
$this->_zkclient = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
5151

0 commit comments

Comments
 (0)