Skip to content

Commit

Permalink
Fixup return type (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
danog authored Oct 22, 2023
1 parent 2eeb178 commit 2cd168c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SqlConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final public function getHost(): string
return $this->host;
}

final public function withHost(string $host): self
final public function withHost(string $host): static
{
$new = clone $this;
$new->host = $host;
Expand All @@ -89,7 +89,7 @@ final public function getPort(): int
return $this->port;
}

final public function withPort(int $port): self
final public function withPort(int $port): static
{
$new = clone $this;
$new->port = $port;
Expand All @@ -101,7 +101,7 @@ final public function getUser(): ?string
return $this->user;
}

final public function withUser(string $user = null): self
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): self
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): self
final public function withDatabase(string $database = null): static
{
$new = clone $this;
$new->database = $database;
Expand Down

0 comments on commit 2cd168c

Please sign in to comment.