8000 Merge branch '5.0' · symfony/symfony-docs@0df7425 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0df7425

Browse files
committed
Merge branch '5.0'
* 5.0: Fix customize notification example
2 parents 400ef54 + 66a66ff commit 0df7425

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notifier.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ Customize Notifications
488488
You can extend the ``Notification`` or ``Recipient`` base classes to
489489
customize their behavior. For instance, you can overwrite the
490490
``getChannels()`` method to only return ``sms`` if the invoice price is
491-
very high and the recipient has a phonenumber::
491+
very high and the recipient has a phone number::
492492

493493
namespace App\Notifier;
494494

@@ -511,10 +511,10 @@ very high and the recipient has a phonenumber::
511511
&& $recipient instanceof AdminRecipient
512512
&& null !== $recipient->getPhone()
513513
) {
514-
return ['sms', 'email'];
514+
return ['sms'];
515515
}
516516

517-
return 'email';
517+
return ['email'];
518518
}
519519
}
520520

0 commit comments

Comments
 (0)
0