Skip to content

Commit

Permalink
Added PHP 8.4 compatibility (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge authored Nov 23, 2024
1 parent 4cf80b4 commit 3ca7393
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions src/SqlConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 3ca7393

Please sign in to comment.