Skip to content

Commit 6d288bf

Browse files
committed
bug symfony#53232 [Notifier] [Smsc] Require login and password (OskarStark)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] [Smsc] Require login and password | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | --- | License | MIT Checking the tests, and the DSN, there is no need to make it nullable From a technical POV this is a BC break, which could not really happen in real life 🤷‍♂️ Commits ------- 5cffece [Notifier][Smsc] Require login and password
2 parents 9392f3f + 5cffece commit 6d288bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Bridge/Smsc/SmscTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ final class SmscTransport extends AbstractTransport
3434
private $password;
3535
private $from;
3636

37-
public function __construct(?string $username, ?string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
37+
public function __construct(string $login, string $password, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
3838
{
39-
$this->login = $username;
39+
$this->login = $login;
4040
$this->password = $password;
4141
$this->from = $from;
4242

0 commit comments

Comments
 (0)