From f6d8eaeb2cf0948d00d4c40f25c41b57bd1ed951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4dlich?= Date: Tue, 18 Feb 2020 09:26:27 +0100 Subject: [PATCH] Fix customize notification example --- notifier.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notifier.rst b/notifier.rst index 986b5481c9e..fe6dedb0070 100644 --- a/notifier.rst +++ b/notifier.rst @@ -477,7 +477,7 @@ Customize Notifications You can extend the ``Notification`` or ``Recipient`` base classes to customize their behavior. For instance, you can overwrite the ``getChannels()`` method to only return ``sms`` if the invoice price is -very high and the recipient has a phonenumber:: +very high and the recipient has a phone number:: namespace App\Notifier; @@ -500,10 +500,10 @@ very high and the recipient has a phonenumber:: && $recipient instanceof AdminRecipient && null !== $recipient->getPhone() ) { - return ['sms', 'email']; + return ['sms']; } - return 'email'; + return ['email']; } }