nullsafe
This commit is contained in:
parent
9c6c34f870
commit
661406db67
|
@ -6,10 +6,10 @@ class Credentials {
|
|||
|
||||
public function __construct(
|
||||
public string $host,
|
||||
public int $port = null,
|
||||
public string $database = null,
|
||||
public string $user = null,
|
||||
public string $password = null) {
|
||||
public ?int $port = null,
|
||||
public ?string $database = null,
|
||||
public ?string $user = null,
|
||||
public ?string $password = null) {
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue