Skip to content

Commit

Permalink
Update DatabaseResponse.php (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Aug 18, 2024
1 parent c920c8d commit 7cc0c77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Response/DatabaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ class DatabaseResponse
public string $name;
// Connection details will be missing without the required permission:
// "View database connection details (username, password, or hostname)"
public ?string $user_name;
public ?string $password;
public ?string $url;
public string $user_name;
public string $password;
public string $url;
public string $db_host;
public ?string $ssh_host;
public string $ssh_host;
public object $flags;
public object $environment;

public function __construct(object $database)
{
$this->id = $database->id;
$this->name = $database->name;
$this->user_name = $database->user_name ?? null;
$this->password = $database->password ?? null;
$this->url = $database->url ?? null;
$this->user_name = $database->user_name;
$this->password = $database->password;
$this->url = $database->url;
$this->db_host = $database->db_host;
$this->ssh_host = $database->ssh_host ?? null;
$this->ssh_host = $database->ssh_host;
$this->flags = $database->flags;
$this->environment = $database->environment;
}
Expand Down

0 comments on commit 7cc0c77

Please sign in to comment.