Skip to content

Commit 50d4f7a

Browse files
Merge branch '5.4' into 6.0
* 5.4: [DoctrineBridge] Remove dead code [Lock] Remove unused variable [DoctrineBridge] Replace string with FQCN resolution in EntityType Add missing `@return $this` annotations [Notifier] Add missing types to SmscTransport
2 parents 5cd87c0 + a455d59 commit 50d4f7a

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

Transport/AbstractTransport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function __construct(EventDispatcherInterface $dispatcher = null, LoggerI
3838

3939
/**
4040
* Sets the maximum number of messages to send per second (0 to disable).
41+
*
42+
* @return $this
4143
*/
4244
public function setMaxPerSecond(float $rate): self
4345
{

Transport/Smtp/EsmtpTransport.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public function __construct(string $host = 'localhost', int $port = 0, bool $tls
6363
$stream->setPort($port);
6464
}
6565

66+
/**
67+
* @return $this
68+
*/
6669
public function setUsername(string $username): self
6770
{
6871
$this->username = $username;
@@ -75,6 +78,9 @@ public function getUsername(): string
7578
return $this->username;
7679
}
7780

81+
/**
82+
* @return $this
83+
*/
7884
public function setPassword(string $password): self
7985
{
8086
$this->password = $password;

Transport/Smtp/SmtpTransport.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ public function getStream(): AbstractStream
5959
*
6060
* @param int $threshold The maximum number of messages (0 to disable)
6161
* @param int $sleep The number of seconds to sleep between stopping and re-starting the transport
62+
*
63+
* @return $this
6264
*/
6365
public function setRestartThreshold(int $threshold, int $sleep = 0): self
6466
{
@@ -99,6 +101,8 @@ public function setPingThreshold(int $seconds): static
99101
* If your server does not have a domain name, use the IP address. This will
100102
* automatically be wrapped in square brackets as described in RFC 5321,
101103
* section 4.1.3.
104+
*
105+
* @return $this
102106
*/
103107
public function setLocalDomain(string $domain): self
104108
{

Transport/Smtp/Stream/SocketStream.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ final class SocketStream extends AbstractStream
3131
private ?string $sourceIp = null;
3232
private array $streamContextOptions = [];
3333

34+
/**
35+
* @return $this
36+
*/
3437
public function setTimeout(float $timeout): self
3538
{
3639
$this->timeout = $timeout;
@@ -45,6 +48,8 @@ public function getTimeout(): float
4548

4649
/**
4750
* Literal IPv6 addresses should be wrapped in square brackets.
51+
*
52+
* @return $this
4853
*/
4954
public function setHost(string $host): self
5055
{
@@ -58,6 +63,9 @@ public function getHost(): string
5863
return $this->host;
5964
}
6065

66+
/**
67+
* @return $this
68+
*/
6169
public function setPort(int $port): self
6270
{
6371
$this->port = $port;
@@ -72,6 +80,8 @@ public function getPort(): int
7280

7381
/**
7482
* Sets the TLS/SSL on the socket (disables STARTTLS).
83+
*
84+
* @return $this
7585
*/
7686
public function disableTls(): self
7787
{
@@ -85,6 +95,9 @@ public function isTLS(): bool
8595
return $this->tls;
8696
}
8797

98+
/**
99+
* @return $this
100+
*/
88101
public function setStreamOptions(array $options): self
89102
{
90103
$this->streamContextOptions = $options;
@@ -101,6 +114,8 @@ public function getStreamOptions(): array
101114
* Sets the source IP.
102115
*
103116
* IPv6 addresses should be wrapped in square brackets.
117+
*
118+
* @return $this
104119
*/
105120
public function setSourceIp(string $ip): self
106121
{

0 commit comments

Comments
 (0)