From 7cc0c773ea15d82ab7268266097c846d5814be87 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Sun, 18 Aug 2024 10:56:11 -0700 Subject: [PATCH] Update DatabaseResponse.php (#469) --- src/Response/DatabaseResponse.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Response/DatabaseResponse.php b/src/Response/DatabaseResponse.php index 0067abd3..47a3e1c2 100644 --- a/src/Response/DatabaseResponse.php +++ b/src/Response/DatabaseResponse.php @@ -8,11 +8,11 @@ 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; @@ -20,11 +20,11 @@ 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; }