mirror of
https://github.com/danog/sql.git
synced 2024-11-30 04:29:18 +01:00
Fixup return type
This commit is contained in:
parent
2eeb178aca
commit
a13b5b70d6
@ -77,7 +77,7 @@ abstract class SqlConfig
|
|||||||
return $this->host;
|
return $this->host;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function withHost(string $host): self
|
final public function withHost(string $host): static
|
||||||
{
|
{
|
||||||
$new = clone $this;
|
$new = clone $this;
|
||||||
$new->host = $host;
|
$new->host = $host;
|
||||||
@ -89,7 +89,7 @@ abstract class SqlConfig
|
|||||||
return $this->port;
|
return $this->port;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function withPort(int $port): self
|
final public function withPort(int $port): static
|
||||||
{
|
{
|
||||||
$new = clone $this;
|
$new = clone $this;
|
||||||
$new->port = $port;
|
$new->port = $port;
|
||||||
@ -101,7 +101,7 @@ abstract class SqlConfig
|
|||||||
return $this->user;
|
return $this->user;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function withUser(string $user = null): self
|
final public function withUser(string $user = null): static
|
||||||
{
|
{
|
||||||
$new = clone $this;
|
$new = clone $this;
|
||||||
$new->user = $user;
|
$new->user = $user;
|
||||||
@ -113,7 +113,7 @@ abstract class SqlConfig
|
|||||||
return $this->password;
|
return $this->password;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function withPassword(string $password = null): self
|
final public function withPassword(string $password = null): static
|
||||||
{
|
{
|
||||||
$new = clone $this;
|
$new = clone $this;
|
||||||
$new->password = $password;
|
$new->password = $password;
|
||||||
@ -125,7 +125,7 @@ abstract class SqlConfig
|
|||||||
return $this->database;
|
return $this->database;
|
||||||
}
|
}
|
||||||
|
|
||||||
final public function withDatabase(string $database = null): self
|
final public function withDatabase(string $database = null): static
|
||||||
{
|
{
|
||||||
$new = clone $this;
|
$new = clone $this;
|
||||||
$new->database = $database;
|
$new->database = $database;
|
||||||
|
Loading…
Reference in New Issue
Block a user