Skip to content

Commit

Permalink
port为string时报错解决
Browse files Browse the repository at this point in the history
  • Loading branch information
gmars committed Jul 15, 2019
1 parent 9460871 commit d1b816f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InfiniteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function __construct($tableName = "", $dbConfig = [], $keyConfig = [])
'hostport' => $port
) = $dbConfig;
try {
$this->_db = mysqli_connect($host, $userName, $password, $dataBase, $port);
$this->_db = mysqli_connect($host, $userName, $password, $dataBase, (int)$port);
} catch (\Exception $e) {
throw $e;
}
Expand Down

0 comments on commit d1b816f

Please sign in to comment.