Skip to content

Commit

Permalink
add port to __toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Duchatelet committed Mar 30, 2020
1 parent e02fe6d commit 8e84825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExtendedServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function isConnected(): bool {

public function __toString()
{
return get_class($this) . ' - ' . $this->user . '@' . $this->host . ':' . $this->dbname;
return get_class($this) . ' - ' . $this->user . '@' . $this->host . ':' . $this->port . '/' . $this->dbname;
}

public function close() {
Expand Down

0 comments on commit 8e84825

Please sign in to comment.