From d0b88574a5c161c08afce7fdc4b594659d882448 Mon Sep 17 00:00:00 2001 From: Bilge Date: Sat, 23 Nov 2024 16:09:53 +0000 Subject: [PATCH] Added PHP 8.4 compatibility. --- .github/workflows/ci.yml | 3 +++ src/SqlConfig.php | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 895fc73..21b3599 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,9 @@ jobs: - operating-system: 'ubuntu-latest' php-version: '8.3' + - operating-system: 'ubuntu-latest' + php-version: '8.4' + - operating-system: 'windows-latest' php-version: '8.3' job-description: 'on Windows' diff --git a/src/SqlConfig.php b/src/SqlConfig.php index 2aa35f4..4d64403 100644 --- a/src/SqlConfig.php +++ b/src/SqlConfig.php @@ -101,7 +101,7 @@ final public function getUser(): ?string return $this->user; } - final public function withUser(string $user = null): static + final public function withUser(?string $user = null): static { $new = clone $this; $new->user = $user; @@ -113,7 +113,7 @@ final public function getPassword(): ?string return $this->password; } - final public function withPassword(string $password = null): static + final public function withPassword(?string $password = null): static { $new = clone $this; $new->password = $password; @@ -125,7 +125,7 @@ final public function getDatabase(): ?string return $this->database; } - final public function withDatabase(string $database = null): static + final public function withDatabase(?string $database = null): static { $new = clone $this; $new->database = $database;