Skip to content

Commit 3ca7393

Browse files
authored
Added PHP 8.4 compatibility (#9)
1 parent 4cf80b4 commit 3ca7393

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
- operating-system: 'ubuntu-latest'
1919
php-version: '8.3'
2020

21+
- operating-system: 'ubuntu-latest'
22+
php-version: '8.4'
23+
2124
- operating-system: 'windows-latest'
2225
php-version: '8.3'
2326
job-description: 'on Windows'

src/SqlConfig.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ final public function getUser(): ?string
101101
return $this->user;
102102
}
103103

104-
final public function withUser(string $user = null): static
104+
final public function withUser(?string $user = null): static
105105
{
106106
$new = clone $this;
107107
$new->user = $user;
@@ -113,7 +113,7 @@ final public function getPassword(): ?string
113113
return $this->password;
114114
}
115115

116-
final public function withPassword(string $password = null): static
116+
final public function withPassword(?string $password = null): static
117117
{
118118
$new = clone $this;
119119
$new->password = $password;
@@ -125,7 +125,7 @@ final public function getDatabase(): ?string
125125
return $this->database;
126126
}
127127

128-
final public function withDatabase(string $database = null): static
128+
final public function withDatabase(?string $database = null): static
129129
{
130130
$new = clone $this;
131131
$new->database = $database;

0 commit comments

Comments
 (0)