We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 400ef54 + 66a66ff commit 0df7425Copy full SHA for 0df7425
notifier.rst
@@ -488,7 +488,7 @@ Customize Notifications
488
You can extend the ``Notification`` or ``Recipient`` base classes to
489
customize their behavior. For instance, you can overwrite the
490
``getChannels()`` method to only return ``sms`` if the invoice price is
491
-very high and the recipient has a phonenumber::
+very high and the recipient has a phone number::
492
493
namespace App\Notifier;
494
@@ -511,10 +511,10 @@ very high and the recipient has a phonenumber::
511
&& $recipient instanceof AdminRecipient
512
&& null !== $recipient->getPhone()
513
) {
514
- return ['sms', 'email'];
+ return ['sms'];
515
}
516
517
- return 'email';
+ return ['email'];
518
519
520
0 commit comments