Skip to content

Commit 2cd168c

Browse files
authored
Fixup return type (#8)
1 parent 2eeb178 commit 2cd168c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/SqlConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ final public function getHost(): string
7777
return $this->host;
7878
}
7979

80-
final public function withHost(string $host): self
80+
final public function withHost(string $host): static
8181
{
8282
$new = clone $this;
8383
$new->host = $host;
@@ -89,7 +89,7 @@ final public function getPort(): int
8989
return $this->port;
9090
}
9191

92-
final public function withPort(int $port): self
92+
final public function withPort(int $port): static
9393
{
9494
$new = clone $this;
9595
$new->port = $port;
@@ -101,7 +101,7 @@ final public function getUser(): ?string
101101
return $this->user;
102102
}
103103

104-
final public function withUser(string $user = null): self
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): self
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): self
128+
final public function withDatabase(string $database = null): static
129129
{
130130
$new = clone $this;
131131
$new->database = $database;

0 commit comments

Comments
 (0)