Skip to content

[Notifier] unsupported options exception #59234

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

Conversation

raphael-geffroy
Copy link
Contributor

@raphael-geffroy raphael-geffroy commented Dec 17, 2024

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues Fix #59120
License MIT

Streamline one more exception for the bridges regarding option classes.

@OskarStark
Copy link
Contributor

Thanks, you need to raise the minimum symfony/notifier version to 7.3 for those bridges, using the new exception class

@raphael-geffroy raphael-geffroy force-pushed the feat/notifier-unsupported-options-exception branch from 0a5d2c9 to a8ca2d6 Compare December 17, 2024 10:07
@raphael-geffroy
Copy link
Contributor Author

@OskarStark like this ? 🤔

@xabbuh
Copy link
Member

xabbuh commented Dec 17, 2024

maybe we should also add the type that was actually passed as part of the exception message

@raphael-geffroy
Copy link
Contributor Author

I did it at first, inspired by the \Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException and then I saw that all the existing exception had the same format so I reused it.
But I agree with you, I'll revert to this step then !

@raphael-geffroy
Copy link
Contributor Author

@xabbuh Done ✅ (reused the format of the \Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException)

@fabpot fabpot force-pushed the feat/notifier-unsupported-options-exception branch from e496f5f to 27dfb8c Compare December 18, 2024 08:32
@fabpot
Copy link
Member

fabpot commented Dec 18, 2024

Thank you @raphael-geffroy.

@fabpot fabpot merged commit 94a156f into symfony:7.3 Dec 18, 2024
2 of 3 checks passed
@raphael-geffroy
Copy link
Contributor Author

Thanks to you @OskarStark @xabbuh @fabpot 🫶

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.

Streamline one more exception for the bridges regarding option classes
5 participants