diff --git a/UPGRADE-5.2.md b/UPGRADE-5.2.md index 36859edc762cf..cd3c523d7644b 100644 --- a/UPGRADE-5.2.md +++ b/UPGRADE-5.2.md @@ -57,6 +57,18 @@ Monolog * The `$actionLevel` constructor argument of `Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy` has been deprecated and replaced by the `$inner` one which expects an ActivationStrategyInterface to decorate instead. `Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy` will become final in 6.0. * The `$actionLevel` constructor argument of `Symfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy` has been deprecated and replaced by the `$inner` one which expects an ActivationStrategyInterface to decorate instead. `Symfony\Bridge\Monolog\Handler\FingersCrossed\HttpCodeActivationStrategy` will become final in 6.0 +Notifier +-------- + + * [BC BREAK] The `TransportInterface::send()` and `AbstractTransport::doSend()` methods changed to return a `?SentMessage` instance instead of `void`. + * [BC BREAK] Changed the type-hint of the `$recipient` argument in the `as*Message()` method + of `EmailNotificationInterface` and `SmsNotificationInterface` to `EmailRecipientInterface` + and `SmsRecipientInterface`. + * [BC BREAK] Removed the `AdminRecipient`. + * [BC BREAK] Changed the type-hint of the `$recipient` argument in `NotifierInterface::send()`, + `Notifier::getChannels()`, `ChannelInterface::notifiy()` and `ChannelInterface::supports()` to + `RecipientInterface`. + PropertyAccess -------------- diff --git a/src/Symfony/Component/Notifier/CHANGELOG.md b/src/Symfony/Component/Notifier/CHANGELOG.md index 441a30d9c3da7..e381e758ca25e 100644 --- a/src/Symfony/Component/Notifier/CHANGELOG.md +++ b/src/Symfony/Component/Notifier/CHANGELOG.md @@ -7,9 +7,9 @@ CHANGELOG * [BC BREAK] The `TransportInterface::send()` and `AbstractTransport::doSend()` methods changed to return a `?SentMessage` instance instead of `void`. * Added the Zulip notifier bridge * The `EmailRecipientInterface` and `RecipientInterface` were introduced. - * Added `email` and and `phone` properties to `Recipient`. - * [BC BREAK] Changed the type-hint of the `$recipient` argument in the `as*Message()` - of the `EmailNotificationInterface` and `SmsNotificationInterface` to `EmailRecipientInterface` + * Added `email` and `phone` properties to `Recipient`. + * [BC BREAK] Changed the type-hint of the `$recipient` argument in the `as*Message()` method + of `EmailNotificationInterface` and `SmsNotificationInterface` to `EmailRecipientInterface` and `SmsRecipientInterface`. * [BC BREAK] Removed the `AdminRecipient`. * The `EmailRecipientInterface` and `SmsRecipientInterface` now extend the `RecipientInterface`.