Skip to content

Commit 68fcbf8

Browse files
OskarStarkfabpot
authored andcommitted
[Mailer][Notifier] Add and use Dsn::getBooleanOption()
1 parent 2f72b1e commit 68fcbf8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SmsapiTransportFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function create(Dsn $dsn): SmsapiTransport
3131
$authToken = $this->getUser($dsn);
3232
$from = $dsn->getOption('from', '');
3333
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
34-
$fast = filter_var($dsn->getOption('fast', false), \FILTER_VALIDATE_BOOL);
35-
$test = filter_var($dsn->getOption('test', false), \FILTER_VALIDATE_BOOL);
34+
$fast = $dsn->getBooleanOption('fast');
35+
$test = $dsn->getBooleanOption('test');
3636
$port = $dsn->getPort();
3737

3838
return (new SmsapiTransport($authToken, $from, $this->client, $this->dispatcher))->setFast($fast)->setHost($host)->setPort($port)->setTest($test);

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=8.2",
2020
"symfony/http-client": "^6.4|^7.0",
21-
"symfony/notifier": "^7.2"
21+
"symfony/notifier": "^7.3"
2222
},
2323
"autoload": {
2424
"psr-4": { "Symfony\\Component\\Notifier\\Bridge\\Smsapi\\": "" },

0 commit comments

Comments
 (0)