8000 bug #44771 [Notifier] Use correct factory for the msteams transport (… · symfony/symfony@908b21f · GitHub
[go: up one dir, main page]

Skip to content

Commit 908b21f

Browse files
committed
bug #44771 [Notifier] Use correct factory for the msteams transport (veewee)
This PR was merged into the 5.3 branch. Discussion ---------- [Notifier] Use correct factory for the msteams transport | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Creating a microsoft teams transport through the `Notifier` `Transport::fromDsn()` class results in an exception: ``` PHP Fatal error: Uncaught TypeError: Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransport::__construct(): Argument #1 ($path) must be of type string, null given, called in /vendor/symfony/notifier/Transport.php on line 186 and defined in /vendor/symfony/microsoft-teams-notifier/MicrosoftTeamsTransport.php:35 Stack trace: * snap * ``` This PR uses the correct ms teams transport factory instead. It is pointed at the `5.3` branch, in which this specific transport was introduced. The error is also there in all versions upwards. See https://github.com/symfony/symfony/blob/6.1/src/Symfony/Component/Notifier/Transport.php#L84 Commits ------- 87edd23 [Notifier] Use correct factory for the msteams transport
2 parents e9779ec + 87edd23 commit 908b21f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Notifier/Transport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use Symfony\Component\Notifier\Bridge\LightSms\LightSmsTransportFactory;
2525
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
2626
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransportFactory;
27-
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransport;
27+
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory;
2828
use Symfony\Component\Notifier\Bridge\Mobyt\MobytTransportFactory;
2929
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
3030
use Symfony\Component\Notifier\Bridge\Octopush\OctopushTransportFactory;
@@ -68,7 +68,7 @@ class Transport
6868
LightSmsTransportFactory::class,
6969
MattermostTransportFactory::class,
7070
MessageBirdTransportFactory::class,
71-
MicrosoftTeamsTransport::class,
71+
MicrosoftTeamsTransportFactory::class,
7272
MobytTransportFactory::class,
7373
NexmoTransportFactory::class,
7474
OctopushTransportFactory::class,

0 commit comments

Comments
 (0)
0