Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Notifier] Use correct factory for the msteams transport #44771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

veewee
Copy link
Contributor

@veewee veewee commented Dec 23, 2021

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

@fabpot
Copy link
Member

fabpot commented Dec 23, 2021

Thank you @veewee.

@fabpot fabpot merged commit 908b21f into symfony:5.3 Dec 23, 2021
@OskarStark
Copy link
Contributor

Good catch, thank you 🙏

This was referenced Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants