From 661406db67d4d34357de70b142f3de9813e2049f Mon Sep 17 00:00:00 2001 From: Dariusz Date: Sun, 7 Mar 2021 10:55:23 +0100 Subject: [PATCH] nullsafe --- src/Fufle/ORM/Database/Credentials.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Fufle/ORM/Database/Credentials.php b/src/Fufle/ORM/Database/Credentials.php index fbdb52b..47493ac 100644 --- a/src/Fufle/ORM/Database/Credentials.php +++ b/src/Fufle/ORM/Database/Credentials.php @@ -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) { } } \ No newline at end of file