[Notifier] Change return type
This commit is contained in:
parent
b3de641fd4
commit
d4f001afec
@ -23,6 +23,11 @@ HttpKernel
|
|||||||
|
|
||||||
* Marked the class `Symfony\Component\HttpKernel\EventListener\DebugHandlersListener` as internal
|
* Marked the class `Symfony\Component\HttpKernel\EventListener\DebugHandlersListener` as internal
|
||||||
|
|
||||||
|
Notifier
|
||||||
|
-------
|
||||||
|
|
||||||
|
* Changed the return type of `Symfony\Component\Notifier\Transport\AbstractTransportFactory::getEndpoint()` from `?string` to `string`
|
||||||
|
|
||||||
PhpunitBridge
|
PhpunitBridge
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ final class InfobipTransport extends AbstractTransport
|
|||||||
return new SentMessage($message, (string) $this);
|
return new SentMessage($message, (string) $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getEndpoint(): ?string
|
protected function getEndpoint(): string
|
||||||
{
|
{
|
||||||
return $this->host.($this->port ? ':'.$this->port : '');
|
return $this->host.($this->port ? ':'.$this->port : '');
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ final class MattermostTransport extends AbstractTransport
|
|||||||
return $sentMessage;
|
return $sentMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getEndpoint(): ?string
|
protected function getEndpoint(): string
|
||||||
{
|
{
|
||||||
return rtrim($this->host.($this->port ? ':'.$this->port : '').($this->path ?? ''), '/');
|
return rtrim($this->host.($this->port ? ':'.$this->port : '').($this->path ?? ''), '/');
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ CHANGELOG
|
|||||||
-----
|
-----
|
||||||
|
|
||||||
* The component is not marked as `@experimental` anymore
|
* The component is not marked as `@experimental` anymore
|
||||||
|
* [BC BREAK] Changed the return type of `AbstractTransportFactory::getEndpoint()` from `?string` to `string`
|
||||||
|
|
||||||
5.2.0
|
5.2.0
|
||||||
-----
|
-----
|
||||||
|
@ -79,7 +79,7 @@ abstract class AbstractTransport implements TransportInterface
|
|||||||
|
|
||||||
abstract protected function doSend(MessageInterface $message): SentMessage;
|
abstract protected function doSend(MessageInterface $message): SentMessage;
|
||||||
|
|
||||||
protected function getEndpoint(): ?string
|
protected function getEndpoint(): string
|
||||||
{
|
{
|
||||||
return ($this->host ?: $this->getDefaultHost()).($this->port ? ':'.$this->port : '');
|
return ($this->host ?: $this->getDefaultHost()).($this->port ? ':'.$this->port : '');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user