8000 [Notifier] Change return type · symfony/symfony@d4f001a · GitHub
[go: up one dir, main page]

Skip to content

Commit d4f001a

Browse files
committed
[Notifier] Change return type
1 parent b3de641 commit d4f001a

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

UPGRADE-5.3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ HttpKernel
2323

2424
* Marked the class `Symfony\Component\HttpKernel\EventListener\DebugHandlersListener` as internal
2525

26+
Notifier
27+
-------
28+
29+
* Changed the return type of `Symfony\Component\Notifier\Transport\AbstractTransportFactory::getEndpoint()` from `?string` to `string`
30+
2631
PhpunitBridge
2732
-------------
2833

src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function doSend(MessageInterface $message): SentMessage
8585
return new SentMessage($message, (string) $this);
8686
}
8787

88-
protected function getEndpoint(): ?string
88+
protected function getEndpoint(): string
8989
{
9090
return $this->host.($this->port ? ':'.$this->port : '');
9191
}

src/Symfony/Component/Notifier/Bridge/Mattermost/MattermostTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function doSend(MessageInterface $message): SentMessage
8585
return $sentMessage;
8686
}
8787

88-
protected function getEndpoint(): ?string
88+
protected function getEndpoint(): string
8989
{
9090
return rtrim($this->host.($this->port ? ':'.$this->port : '').($this->path ?? ''), '/');
9191
}

src/Symfony/Component/Notifier/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ CHANGELOG
55
-----
66

77
* The component is not marked as `@experimental` anymore
8+
* [BC BREAK] Changed the return type of `AbstractTransportFactory::getEndpoint()` from `?string` to `string`
89

910
5.2.0
1011
-----

src/Symfony/Component/Notifier/Transport/AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function send(MessageInterface $message): SentMessage
7979

8080
abstract protected function doSend(MessageInterface $message): SentMessage;
8181

82-
protected function getEndpoint(): ?string
82+
protected function getEndpoint(): string
8383
{
8484
return ($this->host ?: $this->getDefaultHost()).($this->port ? ':'.$this->port : '');
8585
}

0 commit comments

Comments
 (0)
0