Skip to content

Commit 623d6dd

Browse files
committed
[Mailer] fixed timeout type hint
1 parent 4fe6f38 commit 623d6dd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Smtp/Stream/SocketStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ final class SocketStream extends AbstractStream
3434
private $sourceIp;
3535
private $streamContextOptions = [];
3636

37-
public function setTimeout(int $timeout): self
37+
public function setTimeout(float $timeout): self
3838
{
3939
$this->timeout = $timeout;
4040

4141
return $this;
4242
}
4343

44-
public function getTimeout(): int
44+
public function getTimeout(): float
4545
{
4646
return $this->timeout;
4747
}

SocketStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ final class SocketStream extends AbstractStream
3434
private $sourceIp;
3535
private $streamContextOptions = [];
3636

37-
public function setTimeout(int $timeout): self
37+
public function setTimeout(float $timeout): self
3838
{
3939
$this->timeout = $timeout;
4040

4141
return $this;
4242
}
4343

44-
public function getTimeout(): int
44+
public function getTimeout(): float
4545
{
4646
return $this->timeout;
4747
}

Stream/SocketStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ final class SocketStream extends AbstractStream
3434
private $sourceIp;
3535
private $streamContextOptions = [];
3636

37-
public function setTimeout(int $timeout): self
37+
public function setTimeout(float $timeout): self
3838
{
3939
$this->timeout = $timeout;
4040

4141
return $this;
4242
}
4343

44-
public function getTimeout(): int
44+
public function getTimeout(): float
4545
{
4646
return $this->timeout;
4747
}

Transport/Smtp/Stream/SocketStream.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ final class SocketStream extends AbstractStream
3434
private $sourceIp;
3535
private $streamContextOptions = [];
3636

37-
public function setTimeout(int $timeout): self
37+
public function setTimeout(float $timeout): self
3838
{
3939
$this->timeout = $timeout;
4040

4141
return $this;
4242
}
4343

44-
public function getTimeout(): int
44+
public function getTimeout(): float
4545
{
4646
return $this->timeout;
4747
}

0 commit comments

Comments
 (0)